3 set(CMAKE_INCLUDE_CURRENT_DIR ON)
5 # Set the RPATH of createdump so that it can find dependencies without needing to set LD_LIBRARY_PATH
6 # For more information: http://www.cmake.org/Wiki/CMake_RPATH_handling.
8 set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
9 if(CLR_CMAKE_PLATFORM_DARWIN)
10 set(CMAKE_INSTALL_RPATH "@loader_path")
12 set(CMAKE_INSTALL_RPATH "\$ORIGIN")
13 endif(CLR_CMAKE_PLATFORM_DARWIN)
14 endif (CORECLR_SET_RPATH)
16 remove_definitions(-DUNICODE)
17 remove_definitions(-D_UNICODE)
19 include_directories(BEFORE ${VM_DIR})
21 add_definitions(-DPAL_STDCPP_COMPAT)
23 add_compile_options(-fPIE)
25 set(CREATEDUMP_SOURCES
33 _add_library(createdump_lib
37 _add_executable(createdump
42 add_dependencies(createdump pal_redefines_file)
44 target_link_libraries(createdump
46 # share the PAL/corguids in the dac module
50 add_dependencies(createdump mscordaccore)
52 install_clr(createdump)