summaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2015-12-27 13:01:55 -0500
committerAllen Winter <allen.winter@kdab.com>2015-12-27 13:01:55 -0500
commit88ddfb1218b496a42bf0d1f74c5917c107797f2e (patch)
treedf2906b985254a57cfade2d84ff3b212d7c32a6f /ConfigureChecks.cmake
parent0d3c7f326ff77a0e1eeb5e7f023d760d2a95b1f6 (diff)
downloadlibical-git-88ddfb1218b496a42bf0d1f74c5917c107797f2e.tar.gz
use cmake discovery for GetNumberFormat()
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 528404fb..b0da4b20 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -56,6 +56,9 @@ check_function_exists(iswspace HAVE_ISWSPACE) #Linux <wctype.h>
check_function_exists(setenv HAVE_SETENV)
check_function_exists(unsetenv HAVE_UNSETENV)
+set(CMAKE_REQUIRED_LIBRARIES kernel32.lib)
+check_function_exists(GetNumberFormat HAVE_GETNUMBERFORMAT) #Windows <windows.h>
+
include(CheckTypeSize)
check_type_size(intptr_t SIZEOF_INTPTR_T)
check_type_size(pid_t SIZEOF_PID_T)