Browse Source

set MacOS LINK_FLAG to export_dynamic

pull/1278/head
Silvio Kunaschk 6 years ago
parent
commit
5afb88a41b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      CMakeLists.txt

+ 2
- 2
CMakeLists.txt View File

@@ -37,14 +37,14 @@ target_compile_definitions(${RACK_APP} PRIVATE VERSION=${RACK_BUILD_VERSION})


if (MSVC) if (MSVC)
target_compile_definitions(${RACK_APP} PRIVATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES ARCH_WIN) target_compile_definitions(${RACK_APP} PRIVATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES ARCH_WIN)
else ()
set_target_properties(${RACK_APP} PROPERTIES LINK_FLAGS -rdynamic)
endif () endif ()


if (CMAKE_SYSTEM_NAME STREQUAL "Linux") if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_compile_definitions(${RACK_APP} PRIVATE ARCH_LIN) target_compile_definitions(${RACK_APP} PRIVATE ARCH_LIN)
set_target_properties(${RACK_APP} PROPERTIES LINK_FLAGS -rdynamic)
elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin") elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
target_compile_definitions(${RACK_APP} PRIVATE ARCH_MAC) target_compile_definitions(${RACK_APP} PRIVATE ARCH_MAC)
set_target_properties(${RACK_APP} PROPERTIES LINK_FLAGS -export_dynamic)
endif () endif ()


target_include_directories(${RACK_APP} PRIVATE include) target_include_directories(${RACK_APP} PRIVATE include)


Loading…
Cancel
Save