diff --git a/CMakeModules/DuckStationUtils.cmake b/CMakeModules/DuckStationUtils.cmake index 1ab52e412..bec071287 100644 --- a/CMakeModules/DuckStationUtils.cmake +++ b/CMakeModules/DuckStationUtils.cmake @@ -121,8 +121,8 @@ function(detect_page_size) return() endif() - if(HOST_MIN_PAGE_SIZE OR HOST_MAX_PAGE_SIZE) - if(NOT HOST_MIN_PAGE_SIZE OR NOT HOST_MAX_PAGE_SIZE) + if(DEFINED HOST_MIN_PAGE_SIZE OR DEFINED HOST_MAX_PAGE_SIZE) + if(NOT DEFINED HOST_MIN_PAGE_SIZE OR NOT DEFINED HOST_MAX_PAGE_SIZE) message(FATAL_ERROR "Both HOST_MIN_PAGE_SIZE and HOST_MAX_PAGE_SIZE must be defined.") endif() return() @@ -172,7 +172,7 @@ function(detect_cache_line_size) endif() if(CMAKE_CROSSCOMPILING) - message(WARNING "Cross-compiling and can't determine page size, assuming default.") + message(WARNING "Cross-compiling and can't determine cache line size, assuming default.") return() endif()