From 82c36970b8bc31ef1c0b18031f59c80e759303da Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Tue, 1 Jul 2014 10:25:51 +0100 Subject: 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. --- config/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit