Skip to content
Permalink
Browse files

Reset CMAKE_REQUIRED_FLAGS after test

  • Loading branch information
slouken committed Aug 17, 2014
1 parent 95ced65 commit f17587df4aabdea8bf89bb5aff189609dc8ac398
Showing with 1 addition and 0 deletions.
  1. +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()

0 comments on commit f17587d

Please sign in to comment.