summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorPavel Ferencz <pferencz@paloaltonetworks.com>2024-01-27 20:56:46 (GMT)
committerBrad King <brad.king@kitware.com>2024-01-30 17:25:50 (GMT)
commit79ce5ef4e0fe982f663ca4e4a4870ce8007ecba6 (patch)
tree85ea108e1993ec82e7e0c46e7f5ca65be1ad7240 /Modules
parent0b181cec03a17b4f8427cd2e4a387812332161d7 (diff)
downloadCMake-79ce5ef4e0fe982f663ca4e4a4870ce8007ecba6.zip
CMake-79ce5ef4e0fe982f663ca4e4a4870ce8007ecba6.tar.gz
CMake-79ce5ef4e0fe982f663ca4e4a4870ce8007ecba6.tar.bz2
CMakeDetermineSystem: Simplify cross-compiling logging decision
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeDetermineSystem.cmake5
1 files changed, 1 insertions, 4 deletions
diff --git a/Modules/CMakeDetermineSystem.cmake b/Modules/CMakeDetermineSystem.cmake
index f338aac..1ccde43 100644
--- a/Modules/CMakeDetermineSystem.cmake
+++ b/Modules/CMakeDetermineSystem.cmake
@@ -183,13 +183,11 @@ if(CMAKE_SYSTEM_NAME)
if(NOT DEFINED CMAKE_CROSSCOMPILING)
set(CMAKE_CROSSCOMPILING TRUE)
endif()
- set(PRESET_CMAKE_SYSTEM_NAME TRUE)
elseif(CMAKE_VS_WINCE_VERSION)
set(CMAKE_SYSTEM_NAME "WindowsCE")
set(CMAKE_SYSTEM_VERSION "${CMAKE_VS_WINCE_VERSION}")
set(CMAKE_SYSTEM_PROCESSOR "${MSVC_C_ARCHITECTURE_ID}")
set(CMAKE_CROSSCOMPILING TRUE)
- set(PRESET_CMAKE_SYSTEM_NAME TRUE)
else()
# Build for the host platform and architecture by default.
set(CMAKE_SYSTEM_NAME "${CMAKE_HOST_SYSTEM_NAME}")
@@ -205,7 +203,6 @@ else()
)
endif()
set(CMAKE_CROSSCOMPILING FALSE)
- set(PRESET_CMAKE_SYSTEM_NAME FALSE)
endif()
include(Platform/${CMAKE_SYSTEM_NAME}-Determine OPTIONAL)
@@ -223,7 +220,7 @@ endif()
# in this case there is no CMAKE_BINARY_DIR
if(CMAKE_BINARY_DIR)
# write entry to the log file
- if(PRESET_CMAKE_SYSTEM_NAME)
+ if(CMAKE_CROSSCOMPILING)
message(CONFIGURE_LOG
"The target system is: ${CMAKE_SYSTEM_NAME} - ${CMAKE_SYSTEM_VERSION} - ${CMAKE_SYSTEM_PROCESSOR}\n"
"The host system is: ${CMAKE_HOST_SYSTEM_NAME} - ${CMAKE_HOST_SYSTEM_VERSION} - ${CMAKE_HOST_SYSTEM_PROCESSOR}\n"