aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2014-07-01 10:25:51 +0100
committerRui Abreu Ferreira <raf-ep@gmx.com>2015-05-21 23:16:39 +0100
commit82c36970b8bc31ef1c0b18031f59c80e759303da (patch)
treeec0f707a402c209c03ebda4e2e14d3befc85d03d
parentac42fb8ca729ecac3bc3c43d4f68ce79ca3a5faa (diff)
downloadrneovim-82c36970b8bc31ef1c0b18031f59c80e759303da.tar.gz
rneovim-82c36970b8bc31ef1c0b18031f59c80e759303da.tar.bz2
rneovim-82c36970b8bc31ef1c0b18031f59c80e759303da.zip
Dont require setenv() in non Unix systems
config/CMakeLists.txt failed with a fatal error if the functions setenv could not be found, however this functions only exist in Unix systems.
-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)