From 4f24fff21942e650adea7148ae7564a5757b67ef Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sun, 28 Mar 2021 07:44:16 +0200 Subject: [PATCH] cmake: (Windows) Fix incorrect reference to CMAKE_PACKAGE_PREFIX --- CMakeLists.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8635e3c9..15ce29d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -904,12 +904,6 @@ if(D_PLATFORM_WINDOWS) # Windows Support ) LIST(APPEND PROJECT_TEMPLATES "templates/version.rc.in") LIST(APPEND PROJECT_PRIVATE_GENERATED "${PROJECT_BINARY_DIR}/generated/version.rc") - - if(NOT ${PREFIX}OBS_NATIVE) - list(APPEND PROJECT_TEMPLATES - "templates/installer.iss.in" - ) - endif() endif() # Minimum Dependencies @@ -1794,7 +1788,7 @@ if(NOT ${PREFIX}OBS_NATIVE) get_filename_component(ISS_FILES_DIR "${CMAKE_INSTALL_PREFIX}" ABSOLUTE) file(TO_NATIVE_PATH "${ISS_FILES_DIR}" ISS_FILES_DIR) - get_filename_component(ISS_PACKAGE_DIR "${CMAKE_PACKAGE_PREFIX}" ABSOLUTE) + get_filename_component(ISS_PACKAGE_DIR "${PACKAGE_PREFIX}" ABSOLUTE) file(TO_NATIVE_PATH "${ISS_PACKAGE_DIR}" ISS_PACKAGE_DIR) get_filename_component(ISS_SOURCE_DIR "${PROJECT_SOURCE_DIR}" ABSOLUTE)