Change the install directory for Win32 packages in the CMakeLists.txt file.

This commit is contained in:
Username404-59 2021-04-02 13:53:55 +02:00
parent 682068ad3a
commit abe3a7b418
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 0 deletions

View File

@ -139,6 +139,7 @@ if (UNIX AND NOT MINGW)
endif()
elseif(MINGW OR MSVC)
set(CMAKE_INSTALL_PREFIX "C:\\progs\\${PROJECT_NAME}")
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CODENAME})
set(CPACK_NSIS_INSTALL_ROOT "${CMAKE_INSTALL_PREFIX}")
set(CMAKE_EXE_LINKER_FLAGS "-static -static-libstdc++ ${CMAKE_EXE_LINKER_FLAGS}")
set(CPACK_PACKAGE_FILE_NAME "${PNAME}_wpkg")