Skip to content

Commit

Permalink
Reset CMAKE_REQUIRED_FLAGS after test
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 17, 2014
1 parent 95ced65 commit f17587d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -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()
Expand Down

0 comments on commit f17587d

Please sign in to comment.