summaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2021-08-14 18:33:19 -0400
committerAllen Winter <allen.winter@kdab.com>2021-08-14 18:33:19 -0400
commit66da823417cc546140814d7eaf4d467879a91967 (patch)
treeb6af3c949cb6c3bbd4c8cd1b9161d248b65340ed /ConfigureChecks.cmake
parent6f6e85c037fd4f36fd9d96cf114b244e4eac1edc (diff)
downloadlibical-git-66da823417cc546140814d7eaf4d467879a91967.tar.gz
buildsystem - minor cleanups found with cmake --warn-uninitialized
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index bba33fa9..545877ae 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -61,6 +61,9 @@ if(MSVC_VERSION GREATER 1899)
set(HAVE_SNPRINTF true)
endif()
+if(NOT DEFINED CMAKE_REQUIRED_LIBRARIES)
+ set(CMAKE_REQUIRED_LIBRARIES "")
+endif()
set(_SAVE_RQL ${CMAKE_REQUIRED_LIBRARIES})
set(CMAKE_REQUIRED_LIBRARIES kernel32.lib)
check_function_exists(GetNumberFormat HAVE_GETNUMBERFORMAT) #Windows <windows.h>