CMakeLists.txt
changeset 9083 029f8d643dbe
parent 9082 22232029f074
child 9093 61d1cd95698e
equal deleted inserted replaced
9082:22232029f074 9083:029f8d643dbe
   341     list(APPEND EXTRA_CFLAGS "-Wshadow")
   341     list(APPEND EXTRA_CFLAGS "-Wshadow")
   342   endif()
   342   endif()
   343 
   343 
   344   set(CMAKE_REQUIRED_FLAGS "-Wl,--no-undefined")
   344   set(CMAKE_REQUIRED_FLAGS "-Wl,--no-undefined")
   345   check_c_compiler_flag("" HAVE_NO_UNDEFINED)
   345   check_c_compiler_flag("" HAVE_NO_UNDEFINED)
       
   346   set(CMAKE_REQUIRED_FLAGS)
   346   if(HAVE_NO_UNDEFINED)
   347   if(HAVE_NO_UNDEFINED)
   347     list(APPEND EXTRA_LDFLAGS "-Wl,--no-undefined")
   348     list(APPEND EXTRA_LDFLAGS "-Wl,--no-undefined")
   348   endif()
   349   endif()
   349 endif()
   350 endif()
   350 
   351