From 046622a4452abc3902d7e6dc865136da3bf0dcc8 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Tue, 14 Dec 2021 13:31:24 +0100 Subject: [PATCH] Fix a condition used to determine if windows/mingw is in use --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 81bdbcc..0c1813e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}")