mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-30 05:07:51 +08:00
cmake: cannot detect deprecated apple-clang link options (they are not fatal)
So skip these
This commit is contained in:
committed by
Anonymous Maarten
parent
e338287e64
commit
5f151f4532
+1
-6
@@ -673,12 +673,7 @@ if(USE_GCC OR USE_CLANG OR USE_INTELCC OR USE_QCC)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(APPLE)
|
if(NOT OPENBSD)
|
||||||
check_linker_flag(C "-Wl,-undefined,error" LINKER_SUPPORTS_WL_UNDEFINED_ERROR)
|
|
||||||
if(LINKER_SUPPORTS_WL_UNDEFINED_ERROR)
|
|
||||||
sdl_shared_link_options("-Wl,-undefined,error")
|
|
||||||
endif()
|
|
||||||
elseif(NOT OPENBSD)
|
|
||||||
cmake_push_check_state()
|
cmake_push_check_state()
|
||||||
check_linker_flag(C "-Wl,--no-undefined" LINKER_SUPPORTS_WL_NO_UNDEFINED)
|
check_linker_flag(C "-Wl,--no-undefined" LINKER_SUPPORTS_WL_NO_UNDEFINED)
|
||||||
#FIXME: originally this if had an additional "AND NOT (USE_CLANG AND WINDOWS)"
|
#FIXME: originally this if had an additional "AND NOT (USE_CLANG AND WINDOWS)"
|
||||||
|
|||||||
Reference in New Issue
Block a user