Set CPACK_NSIS_INSTALL_ROOT instead of CPACK_PACKAGING_INSTALL_PREFIX.
This commit is contained in:
parent
2bce63b606
commit
67ad3095dd
|
@ -101,7 +101,7 @@ if (UNIX AND NOT MINGW)
|
|||
endif()
|
||||
elseif(MINGW OR MSVC)
|
||||
set(CMAKE_INSTALL_PREFIX "C:\\\\progs\\\\${PROJECT_NAME}")
|
||||
set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
||||
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")
|
||||
set(CPACK_NSIS_MUI_ICON "${CMAKE_CURRENT_SOURCE_DIR}/resources/${PROJECT_NAME}.ico")
|
||||
|
|
Loading…
Reference in New Issue