Reset CMAKE_REQUIRED_FLAGS after test
This commit is contained in:
parent
a8d9c26db2
commit
e49acc1f5b
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue