From a08bd43000a483e8e36f3cc8db8a38da1d4e6e5c Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 30 Dec 2024 01:53:53 +1000 Subject: [PATCH] CMake: Fix incorrect message for cache line size --- CMakeModules/DuckStationUtils.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeModules/DuckStationUtils.cmake b/CMakeModules/DuckStationUtils.cmake index 1ab52e4123..bec071287c 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()