commit | 147a72cebd0643b8f4860dab45daf0d67bf9b04d | [log] [tgz] |
---|---|---|
author | Jan Kundrát <jan.kundrat@cesnet.cz> | Fri Dec 10 16:13:57 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Dec 16 12:12:03 2021 +0100 |
tree | ef2b5e8c9977440086d6da85612730e05eea49ac | |
parent | 73aa07a6beb85edd05e83a845c64788bfba8d788 [diff] |
MSVC: compat: implement realpath()
diff --git a/CMakeModules/UseCompat.cmake b/CMakeModules/UseCompat.cmake index f9d98a0..31bd59f 100644 --- a/CMakeModules/UseCompat.cmake +++ b/CMakeModules/UseCompat.cmake
@@ -51,6 +51,8 @@ check_struct_has_member("struct tm" tm_gmtoff time.h HAVE_TM_GMTOFF) check_symbol_exists(timezone time.h HAVE_TIME_H_TIMEZONE) + check_symbol_exists(realpath "stdlib.h" HAVE_REALPATH) + unset(CMAKE_REQUIRED_DEFINITIONS) unset(CMAKE_REQUIRED_LIBRARIES)