CMake: Fix incorrect message for cache line size

This commit is contained in:
Stenzek 2024-12-30 01:53:53 +10:00
parent 156b3f989b
commit a08bd43000
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -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()