commit | c8805306689e77b70250986363bf1c180d1f37bb | [log] [tgz] |
---|---|---|
author | Jan Kundrát <jan.kundrat@cesnet.cz> | Sat Dec 11 23:40:26 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Dec 16 12:12:03 2021 +0100 |
tree | dd738832382d7ba52dbf9812ed43bcb70eddf5cb | |
parent | 8a4e59eb8bea6e24d6955465e8d30e9c0f98cc31 [diff] |
MSVC: compat: implement setenv()
diff --git a/CMakeModules/UseCompat.cmake b/CMakeModules/UseCompat.cmake index eb4b103..08c29a2 100644 --- a/CMakeModules/UseCompat.cmake +++ b/CMakeModules/UseCompat.cmake
@@ -56,6 +56,7 @@ check_symbol_exists(strptime "time.h" HAVE_STRPTIME) check_symbol_exists(mmap "sys/mman.h" HAVE_MMAP) check_symbol_exists(dirname "libgen.h" HAVE_DIRNAME) + check_symbol_exists(setenv "stdlib.h" HAVE_SETENV) unset(CMAKE_REQUIRED_DEFINITIONS) unset(CMAKE_REQUIRED_LIBRARIES)