diff --git a/host/platform/Windows/CMakeLists.txt b/host/platform/Windows/CMakeLists.txt index a8db9ae3..0a8dd80a 100644 --- a/host/platform/Windows/CMakeLists.txt +++ b/host/platform/Windows/CMakeLists.txt @@ -38,5 +38,4 @@ target_include_directories(platform_Windows # these are for the nsis installer generator configure_file("${PROJECT_SOURCE_DIR}/installer.nsi" "${PROJECT_BINARY_DIR}/installer.nsi" COPYONLY) configure_file("${PROJECT_TOP}/resources/icon.ico" "${PROJECT_BINARY_DIR}/icon.ico" COPYONLY) -configure_file("${CMAKE_BINARY_DIR}/VERSION" "${PROJECT_BINARY_DIR}/VERSION" COPYONLY) configure_file("${PROJECT_TOP}/LICENSE" "${PROJECT_BINARY_DIR}/LICENSE.txt" COPYONLY) diff --git a/host/platform/Windows/installer.nsi b/host/platform/Windows/installer.nsi index 1089022e..fe383faa 100644 --- a/host/platform/Windows/installer.nsi +++ b/host/platform/Windows/installer.nsi @@ -36,7 +36,7 @@ InstallDir "$PROGRAMFILES64\Looking Glass (host)" !define MUI_ICON "icon.ico" !define MUI_UNICON "icon.ico" !define MUI_LICENSEPAGE_BUTTON "Agree" -!define /file VERSION "VERSION" +!define /file VERSION "../../VERSION" ;Install and uninstall pages !insertmacro MUI_PAGE_LICENSE "LICENSE.txt"