CMakeLists.txt
changeset 9981 a443c97eb294
parent 9980 224187458d03
child 9982 9145e51b15bb
equal deleted inserted replaced
9980:224187458d03 9981:a443c97eb294
   380     list(APPEND EXTRA_CFLAGS "-Wshadow")
   380     list(APPEND EXTRA_CFLAGS "-Wshadow")
   381   endif()
   381   endif()
   382 
   382 
   383   set(CMAKE_REQUIRED_FLAGS "-Wl,--no-undefined")
   383   set(CMAKE_REQUIRED_FLAGS "-Wl,--no-undefined")
   384   check_c_compiler_flag("" HAVE_NO_UNDEFINED)
   384   check_c_compiler_flag("" HAVE_NO_UNDEFINED)
   385   set(CMAKE_REQUIRED_FLAGS)
   385   set(CMAKE_REQUIRED_FLAGS ${ORIG_CMAKE_REQUIRED_FLAGS})
   386   if(HAVE_NO_UNDEFINED)
   386   if(HAVE_NO_UNDEFINED)
   387     list(APPEND EXTRA_LDFLAGS "-Wl,--no-undefined")
   387     list(APPEND EXTRA_LDFLAGS "-Wl,--no-undefined")
   388   endif()
   388   endif()
   389 endif()
   389 endif()
   390 
   390