diff --git a/CMakeLists.txt b/CMakeLists.txt index 5004bee..ad62765 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -100,8 +100,9 @@ if (UNIX AND NOT MINGW) DESTINATION yerbacon/${CMAKE_INSTALL_BINDIR}) endif() elseif(MINGW OR MSVC) - set(CMAKE_INSTALL_PREFIX "C:\\progs\\${PROJECT_NAME}") - set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}\\") + set(PREFIXDIR "progs\\${PROJECT_NAME}") + set(CMAKE_INSTALL_PREFIX "C:\\${PREFIXDIR}") + set(CPACK_PACKAGING_INSTALL_PREFIX "${PREFIXDIR}") set(CMAKE_EXE_LINKER_FLAGS "-static -static-libstdc++ ${CMAKE_EXE_LINKER_FLAGS}") set(CPACK_PACKAGE_FILE_NAME "${PNAME}_wpkg") set(CPACK_NSIS_MUI_ICON "${CMAKE_CURRENT_SOURCE_DIR}/resources/${PROJECT_NAME}.ico")