Make stuff buildable on Mac.

This commit is contained in:
rude
2016-07-14 16:27:59 +02:00
parent 79ff68efa3
commit 5bb2a2facb
3 changed files with 17 additions and 2 deletions
+1 -1
View File
@@ -416,7 +416,7 @@ if(USE_GCC OR USE_CLANG)
set(CMAKE_REQUIRED_FLAGS "-Wl,--no-undefined")
check_c_compiler_flag("" HAVE_NO_UNDEFINED)
set(CMAKE_REQUIRED_FLAGS ${ORIG_CMAKE_REQUIRED_FLAGS})
if(HAVE_NO_UNDEFINED)
if(HAVE_NO_UNDEFINED AND NOT APPLE) # Flag check produces false positive on (my) Mac.
list(APPEND EXTRA_LDFLAGS "-Wl,--no-undefined")
endif()
endif()