We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ac74f8 commit 35a3eadCopy full SHA for 35a3ead
CMakeLists.txt
@@ -95,7 +95,9 @@ else(MSVC)
95
# We still use c++11 flag in CPU build because gcc5.4 (our default compiler) is
96
# not fully compatible with c++14 feature.
97
set(CMAKE_CXX_FLAGS "-O2 -Wall -fPIC -std=c++11 ${CMAKE_CXX_FLAGS}")
98
- set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--warn-common ${CMAKE_SHARED_LINKER_FLAGS}")
+ if(NOT APPLE)
99
+ set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--warn-common ${CMAKE_SHARED_LINKER_FLAGS}")
100
+ endif(NOT APPLE)
101
endif(MSVC)
102
103
if(USE_OPENMP)
0 commit comments