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}")