diff options
author | fuzzard <fuzzard@kodi.tv> | 2022-04-25 10:54:48 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2022-04-28 13:20:16 +1000 |
commit | d5b46e864dbef8a3e06c0f680f925331b991b624 (patch) | |
tree | 97e016b7cc01c8b3ec8238bd08a58e9e44421832 /cmake/scripts/common | |
parent | 2b6cc755abf04aa51192de9f1bfa00dd9ceb075d (diff) |
[cmake] rename CORE_HOST_IS_TARGET to HOST_CAN_EXECUTE_TARGET
We are now in a time where some platforms/archs can execute "foreign" (x86_64)
arch code locally (Apple via Rosetta, Windows on arm).
Rename CORE_HOST_IS_TARGET to HOST_CAN_EXECUTE_TARGET to allow platforms ArchSetup
to set and therefore execute tests if desired.
Diffstat (limited to 'cmake/scripts/common')
-rw-r--r-- | cmake/scripts/common/ArchSetup.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cmake/scripts/common/ArchSetup.cmake b/cmake/scripts/common/ArchSetup.cmake index 52f6276e79..97a09b4433 100644 --- a/cmake/scripts/common/ArchSetup.cmake +++ b/cmake/scripts/common/ArchSetup.cmake @@ -59,9 +59,13 @@ endif() # this variable is set if we can execute build artefacts on the host system (for example unit tests). if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL CMAKE_SYSTEM_PROCESSOR AND CMAKE_HOST_SYSTEM_NAME STREQUAL CMAKE_SYSTEM_NAME) - set(CORE_HOST_IS_TARGET TRUE) + if(NOT HOST_CAN_EXECUTE_TARGET) + set(HOST_CAN_EXECUTE_TARGET TRUE) + endif() else() - set(CORE_HOST_IS_TARGET FALSE) + if(NOT HOST_CAN_EXECUTE_TARGET) + set(HOST_CAN_EXECUTE_TARGET FALSE) + endif() endif() # system specific arch setup |