diff options
author | Allen Winter <allen.winter@kdab.com> | 2015-12-27 14:02:49 -0500 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2015-12-27 14:02:49 -0500 |
commit | a3ccdf27abce5307f1b143a3bb9ee30a8cffcc4e (patch) | |
tree | 852980c039c4ce6f41feb9c0a2677679edd8776c /ConfigureChecks.cmake | |
parent | 88ddfb1218b496a42bf0d1f74c5917c107797f2e (diff) | |
download | libical-git-a3ccdf27abce5307f1b143a3bb9ee30a8cffcc4e.tar.gz |
ConfigureChecks.cmake - don't corrupt CMAKE_REQUIRED_LIBRARIES
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index b0da4b20..6fced15b 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -56,8 +56,10 @@ check_function_exists(iswspace HAVE_ISWSPACE) #Linux <wctype.h> check_function_exists(setenv HAVE_SETENV) check_function_exists(unsetenv HAVE_UNSETENV) +set(_SAVE_RQL ${CMAKE_REQUIRED_LIBRARIES}) set(CMAKE_REQUIRED_LIBRARIES kernel32.lib) check_function_exists(GetNumberFormat HAVE_GETNUMBERFORMAT) #Windows <windows.h> +set(CMAKE_REQUIRED_LIBRARIES ${_SAVE_RQL}) include(CheckTypeSize) check_type_size(intptr_t SIZEOF_INTPTR_T) |