CMake: Don't use Windows path separators in install prefix

Sometimes CMake complains that the backslash is interpreted as unknown escape symbol.
This commit is contained in:
Maarten Bent 2022-06-18 15:38:51 +02:00
parent efa5cfcaa9
commit 2e2e96f8aa
2 changed files with 3 additions and 1 deletions

View file

@ -17,6 +17,8 @@ if(NOT CMAKE_CONFIGURATION_TYPES)
endif()
endif()
file(TO_CMAKE_PATH "${CMAKE_INSTALL_PREFIX}" CMAKE_INSTALL_PREFIX)
# https://blog.kitware.com/cmake-and-the-default-build-type/
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set(default_build_type "Debug")

View file

@ -71,7 +71,7 @@ if(WXGTK)
endforeach()
endif()
file(TO_CMAKE_PATH "${CMAKE_INSTALL_PREFIX}" wxINSTALL_PREFIX)
set(wxINSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
check_include_files("stdlib.h;stdarg.h;string.h;float.h" STDC_HEADERS)