From e1d7752165dc44222ea9533e6243a9a7c018dc41 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 9 Oct 2020 02:36:48 +1100 Subject: [PATCH] [host] fix nsis build failure to do invalid path to new VERSION file --- host/platform/Windows/CMakeLists.txt | 1 - host/platform/Windows/installer.nsi | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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"