We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17aed38 commit 2c79a27Copy full SHA for 2c79a27
CMakeLists.txt
@@ -259,7 +259,13 @@ set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION_STRING})
259
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
260
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
261
set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
262
-set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
+if(WIN32)
263
+ # Prevent drive letters from bleeding into the staging path when CPack creates
264
+ # the temporary install tree on Windows.
265
+ set(CPACK_PACKAGING_INSTALL_PREFIX "/")
266
+else()
267
+ set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
268
+endif()
269
set(CPACK_MONOLITHIC_INSTALL ON)
270
set(CPACK_VERBATIM_VARIABLES ON)
271
0 commit comments