mirror of
https://github.com/love2d/megasource.git
synced 2026-08-17 11:11:35 +02:00
Make stuff buildable on Mac.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user