Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Reset CMAKE_REQUIRED_FLAGS after test
- Loading branch information
Showing
with
1 addition
and
0 deletions.
-
+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() |
|
|