commit | a5b3b99e84ff693530031c6f482df21e675d32c9 | [log] [tgz] |
---|---|---|
author | Jan Kundrát <jan.kundrat@cesnet.cz> | Fri Dec 10 16:13:57 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Mar 15 11:36:42 2022 +0100 |
tree | ef2b5e8c9977440086d6da85612730e05eea49ac | |
parent | 100c572ae678a5f2eb1fd8073892d82c9fd4c684 [diff] [blame] |
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)