aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/CMakeLists.txt
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2018-07-24 23:26:45 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2018-08-21 19:00:48 +0200
commit93b34981fa6f82e49ffe90ba8b6f0fefbfba281e (patch)
tree6e09ee176e6a045bf9dd214219aec8a92a2cbc51 /tests/libtest/CMakeLists.txt
parent014ed7c22f51463dfbf4566d9d2d7fe959a392ad (diff)
test1148: disable if decimal separator is not point
Modifying the locale with environment variables doesn't work for native Windows applications. Just disable the test in this case if the decimal separator is something different than a point. Use a precheck with a small C program to achieve that. Closes https://github.com/curl/curl/pull/2786
Diffstat (limited to 'tests/libtest/CMakeLists.txt')
-rw-r--r--tests/libtest/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libtest/CMakeLists.txt b/tests/libtest/CMakeLists.txt
index bf2bc5e7e..ac8d33328 100644
--- a/tests/libtest/CMakeLists.txt
+++ b/tests/libtest/CMakeLists.txt
@@ -56,6 +56,9 @@ add_custom_command(
"${CMAKE_SOURCE_DIR}/include/curl/curl.h"
VERBATIM)
+set_property(TARGET chkdecimalpoint
+ APPEND PROPERTY COMPILE_DEFINITIONS "CURLX_NO_MEMORY_CALLBACKS;CURL_STATICLIB")
+
# # files used only in some libcurl test programs
# SET(TESTUTIL testutil.c testutil.h)