cmake: (Windows) Fix incorrect reference to CMAKE_PACKAGE_PREFIX

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2021-03-28 07:44:16 +02:00 committed by Xaymar
parent a20e9c64e2
commit 4f24fff219

View file

@ -904,12 +904,6 @@ if(D_PLATFORM_WINDOWS) # Windows Support
) )
LIST(APPEND PROJECT_TEMPLATES "templates/version.rc.in") LIST(APPEND PROJECT_TEMPLATES "templates/version.rc.in")
LIST(APPEND PROJECT_PRIVATE_GENERATED "${PROJECT_BINARY_DIR}/generated/version.rc") 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() endif()
# Minimum Dependencies # Minimum Dependencies
@ -1794,7 +1788,7 @@ if(NOT ${PREFIX}OBS_NATIVE)
get_filename_component(ISS_FILES_DIR "${CMAKE_INSTALL_PREFIX}" ABSOLUTE) get_filename_component(ISS_FILES_DIR "${CMAKE_INSTALL_PREFIX}" ABSOLUTE)
file(TO_NATIVE_PATH "${ISS_FILES_DIR}" ISS_FILES_DIR) 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) file(TO_NATIVE_PATH "${ISS_PACKAGE_DIR}" ISS_PACKAGE_DIR)
get_filename_component(ISS_SOURCE_DIR "${PROJECT_SOURCE_DIR}" ABSOLUTE) get_filename_component(ISS_SOURCE_DIR "${PROJECT_SOURCE_DIR}" ABSOLUTE)