mirror of
https://github.com/KjellKod/g3log.git
synced 2024-12-13 10:42:56 +01:00
- remove unused "-pthread" flags for clang compilation
- set target_property for rpath handling on OSX
This commit is contained in:
parent
62c7153ce4
commit
73751d2e85
@ -28,7 +28,7 @@ IF ("${CMAKE_CXX_COMPILER_ID}" MATCHES ".*Clang")
|
||||
ELSE()
|
||||
set(PLATFORM_LINK_LIBRIES rt c++abi)
|
||||
ENDIF()
|
||||
SET(CMAKE_CXX_FLAGS "-Wall -std=c++11 -pthread -stdlib=libc++ -Wunused -D_GLIBCXX_USE_NANOSLEEP")
|
||||
SET(CMAKE_CXX_FLAGS "-Wall -std=c++11 -stdlib=libc++ -Wunused -D_GLIBCXX_USE_NANOSLEEP")
|
||||
|
||||
|
||||
|
||||
@ -85,6 +85,9 @@ ENDIF()
|
||||
|
||||
add_library(g3logger_shared SHARED ${SRC_FILES})
|
||||
set_target_properties(g3logger_shared PROPERTIES LINKER_LANGUAGE CXX)
|
||||
IF(APPLE)
|
||||
set_target_properties(g3logger_shared PROPERTIES MACOSX_RPATH TRUE)
|
||||
ENDIF(APPLE)
|
||||
target_link_libraries(g3logger_shared ${PLATFORM_LINK_LIBRIES})
|
||||
|
||||
SET(G3LOG_SHARED_LIBRARY g3logger_shared)
|
||||
|
Loading…
Reference in New Issue
Block a user