cmake: Don't generate InnoSetup files for non-Windows platforms

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2019-02-02 06:33:28 +01:00
parent 9f28144b0b
commit a49e8c6f9d

View file

@ -97,14 +97,14 @@ configure_file(
)
# Windows
## Installer (InnoSetup)
Configure_File(
"${PROJECT_SOURCE_DIR}/cmake/installer.iss.in"
"${PROJECT_BINARY_DIR}/installer.iss"
)
# Windows Specific Resource Definition
if(WIN32)
## Installer (InnoSetup)
Configure_File(
"${PROJECT_SOURCE_DIR}/cmake/installer.iss.in"
"${PROJECT_BINARY_DIR}/installer.iss"
)
# Windows Specific Resource Definition
set(PROJECT_PRODUCT_NAME "${PROJECT_FULL_NAME}")
set(PROJECT_COMPANY_NAME "${PROJECT_AUTHORS}")
set(PROJECT_COPYRIGHT "${PROJECT_AUTHORS} © ${PROJECT_COPYRIGHT_YEARS}")