Explorar o código

Reset CMAKE_REQUIRED_FLAGS after test

Sam Lantinga %!s(int64=12) %!d(string=hai) anos
pai
achega
f17587df4a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      CMakeLists.txt

+ 1 - 0
CMakeLists.txt

@@ -343,6 +343,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)
   if(HAVE_NO_UNDEFINED)
     list(APPEND EXTRA_LDFLAGS "-Wl,--no-undefined")
   endif()