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()
|
||||
|
||||
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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue