aboutsummaryrefslogtreecommitdiff
path: root/config/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'config/CMakeLists.txt')
-rw-r--r--config/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt
index b780291264..3d7660ed58 100644
--- a/config/CMakeLists.txt
+++ b/config/CMakeLists.txt
@@ -51,7 +51,10 @@ if(JEMALLOC_FOUND)
set(HAVE_JEMALLOC 1)
endif()
-check_function_exists(putenv HAVE_PUTENV)
+check_function_exists(_putenv_s HAVE_PUTENV_S)
+if(WIN32 AND NOT HAVE_PUTENV_S)
+ message(SEND_ERROR "_putenv_s() function not found on your system.")
+endif()
check_function_exists(opendir HAVE_OPENDIR)
check_function_exists(readlink HAVE_READLINK)
check_function_exists(setenv HAVE_SETENV)