Răsfoiți Sursa

cmake: cannot detect deprecated apple-clang link options (they are not fatal)

So skip these

(cherry picked from commit 5f151f45327caa54dcef4d2383ead25f4ed418af)
Anonymous Maarten 1 lună în urmă
părinte
comite
8107d5b042
1 a modificat fișierele cu 1 adăugiri și 6 ștergeri
  1. 1 6
      CMakeLists.txt

+ 1 - 6
CMakeLists.txt

@@ -659,12 +659,7 @@ if(USE_GCC OR USE_CLANG OR USE_INTELCC OR USE_QCC)
     endif()
   endif()
 
-  if(APPLE)
-    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)
+  if(NOT OPENBSD)
     cmake_push_check_state()
     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)"