CMake: Fix installing to correct directory

Update path-style of CMAKE_INSTALL_PREFIX after the project is created, otherwise it might not be initialized
This commit is contained in:
Maarten Bent
2025-01-03 17:12:08 +01:00
parent fd9d6b4d29
commit f3766bea3f
2 changed files with 2 additions and 2 deletions
-2
View File
@@ -17,8 +17,6 @@ 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")
+2
View File
@@ -9,6 +9,8 @@
list(APPEND CMAKE_MODULE_PATH "${wxSOURCE_DIR}/build/cmake/modules")
file(TO_CMAKE_PATH "${CMAKE_INSTALL_PREFIX}" CMAKE_INSTALL_PREFIX)
include(build/cmake/files.cmake) # Files list
include(build/cmake/source_groups.cmake) # Source group definitions
include(build/cmake/functions.cmake) # wxWidgets functions