fixes for mac os x
This commit is contained in:
parent
17b56579eb
commit
6d7b6ae9ca
@ -44,6 +44,10 @@ endif()
|
||||
|
||||
if(WIN32)
|
||||
add_flags("/MP")
|
||||
elseif(APPLE)
|
||||
if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
add_flags("-pthread")
|
||||
endif()
|
||||
else()
|
||||
add_flags("-pthread")
|
||||
endif()
|
||||
@ -114,10 +118,10 @@ endif()
|
||||
set(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE_BAK}")
|
||||
|
||||
if (NOT WIN32)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -rdynamic")
|
||||
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -rdynamic")
|
||||
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -rdynamic")
|
||||
set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_PROFILE} -rdynamic")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -rdynamic")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} -rdynamic")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} -rdynamic")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_PROFILE} -rdynamic")
|
||||
endif()
|
||||
|
||||
add_subdirectory (src)
|
||||
|
Loading…
Reference in New Issue
Block a user