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:
parent
efa5cfcaa9
commit
2e2e96f8aa
2 changed files with 3 additions and 1 deletions
|
|
@ -17,6 +17,8 @@ if(NOT CMAKE_CONFIGURATION_TYPES)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
file(TO_CMAKE_PATH "${CMAKE_INSTALL_PREFIX}" CMAKE_INSTALL_PREFIX)
|
||||||
|
|
||||||
# https://blog.kitware.com/cmake-and-the-default-build-type/
|
# https://blog.kitware.com/cmake-and-the-default-build-type/
|
||||||
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
||||||
set(default_build_type "Debug")
|
set(default_build_type "Debug")
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ if(WXGTK)
|
||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
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)
|
check_include_files("stdlib.h;stdarg.h;string.h;float.h" STDC_HEADERS)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue