Fix a condition used to determine if windows/mingw is in use

This commit is contained in:
Username404-59 2021-12-14 13:31:24 +01:00
parent c5ac3c699d
commit 046622a445
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ target_precompile_headers(${EXENAME} PRIVATE src/headers/Yerbacon.hpp)
# lpkg = linux package, wpkg = windows package
set(PNAME ${PROJECT_NAME}-${CODENAME}-${TIME})
if (UNIX AND NOT MINGW)
if (UNIX AND NOT (MINGW OR CMAKE_HOST_WIN32))
include(GNUInstallDirs)
set(CMAKE_INSTALL_PREFIX "/usr")
set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")