From: Andreas Schneider Date: Thu, 17 Oct 2019 13:25:05 +0000 (+0200) Subject: cmake: Use unset() instead of setting an empty string X-Git-Tag: resolv_wrapper-1.1.6~31 X-Git-Url: http://git.samba.org/?p=resolv_wrapper.git;a=commitdiff_plain;h=14834192550c95815b1a4c403038e7aa89599a45 cmake: Use unset() instead of setting an empty string Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme --- diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 687da7f..f3e64d4 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -42,7 +42,7 @@ if(CMAKE_COMPILER_IS_GNUCC AND NOT MINGW AND NOT OS2) "void __attribute__((visibility(\"default\"))) test() {} int main(void){ return 0; } " WITH_VISIBILITY_HIDDEN) - set(CMAKE_REQUIRED_FLAGS "") + unset(CMAKE_REQUIRED_FLAGS) endif (NOT GNUCC_VERSION EQUAL 34) endif(CMAKE_COMPILER_IS_GNUCC AND NOT MINGW AND NOT OS2)