We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcdf518 commit b77a710Copy full SHA for b77a710
1 file changed
cmake/commonSettings.cmake
@@ -1,7 +1,5 @@
1
include(CheckCXXCompilerFlag)
2
-if(CMAKE_MINOR_VERSION GREATER 18 OR CMAKE_MINOR_VERSION EQUAL 18)
3
- include(CheckLinkerFlag)
4
-endif()
+include(CheckLinkerFlag)
5
6
include(${CMAKE_CURRENT_LIST_DIR}/writeAll.cmake)
7
@@ -142,8 +140,11 @@ else()
142
140
143
141
# add pthread flag
144
add_compiler_flag("-pthread" usePThreadCompilerFlag)
145
- if(CMAKE_MINOR_VERSION GREATER 18 OR CMAKE_MINOR_VERSION EQUAL 18)
146
- add_linker_flag("-pthread" usePThreadLinkerFlag)
+ add_linker_flag("-pthread" usePThreadLinkerFlag)
+
+ # use flat namespace to fix symbol lookup issues and align with linux more closely
+ if (APPLE)
147
+ add_linker_flag("-flat_namespace" supportsFlatNameSpace)
148
endif()
149
150
if(QL_USE_PCH)
0 commit comments