aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt
index cdf31a8966..fc36389df4 100644
--- a/config/CMakeLists.txt
+++ b/config/CMakeLists.txt
@@ -59,7 +59,7 @@ check_function_exists(putenv HAVE_PUTENV)
check_function_exists(opendir HAVE_OPENDIR)
check_function_exists(readlink HAVE_READLINK)
check_function_exists(setenv HAVE_SETENV)
-if(NOT HAVE_SETENV)
+if(UNIX AND NOT HAVE_SETENV)
message(SEND_ERROR "setenv() function not found on your system.")
endif()
check_function_exists(unsetenv HAVE_UNSETENV)