mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user