diff options
| author | Rui Abreu Ferreira <raf-ep@gmx.com> | 2014-07-01 10:25:51 +0100 |
|---|---|---|
| committer | Rui Abreu Ferreira <raf-ep@gmx.com> | 2015-05-21 23:16:39 +0100 |
| commit | 82c36970b8bc31ef1c0b18031f59c80e759303da (patch) | |
| tree | ec0f707a402c209c03ebda4e2e14d3befc85d03d | |
| parent | ac42fb8ca729ecac3bc3c43d4f68ce79ca3a5faa (diff) | |
| download | rneovim-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.txt | 2 |
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) |
