diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e1458ce..6348f53f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -108,10 +108,10 @@ else() detect_architecture("__x86_64__" x86_64) detect_architecture("__aarch64__" Aarch64) endif() -if (NOT DEFINED ARCHITECTURE) +if (NOT DEFINED DYNARMIC_ARCHITECTURE) message(FATAL_ERROR "Unsupported architecture encountered. Ending CMake generation.") endif() -message(STATUS "Target architecture: ${ARCHITECTURE}") +message(STATUS "Target architecture: ${DYNARMIC_ARCHITECTURE}") # Include Boost if (NOT TARGET boost) diff --git a/CMakeModules/DetectArchitecture.cmake b/CMakeModules/DetectArchitecture.cmake index e984c6b8..5978061a 100644 --- a/CMakeModules/DetectArchitecture.cmake +++ b/CMakeModules/DetectArchitecture.cmake @@ -1,6 +1,6 @@ include(CheckSymbolExists) function(detect_architecture symbol arch) - if (NOT DEFINED ARCHITECTURE) + if (NOT DEFINED DYNARMIC_ARCHITECTURE) set(CMAKE_REQUIRED_QUIET 1) check_symbol_exists("${symbol}" "" ARCHITECTURE_${arch}) unset(CMAKE_REQUIRED_QUIET) @@ -8,7 +8,7 @@ function(detect_architecture symbol arch) # The output variable needs to be unique across invocations otherwise # CMake's crazy scope rules will keep it defined if (ARCHITECTURE_${arch}) - set(ARCHITECTURE "${arch}" PARENT_SCOPE) + set(DYNARMIC_ARCHITECTURE "${arch}" PARENT_SCOPE) set(ARCHITECTURE_${arch} 1 PARENT_SCOPE) add_definitions(-DARCHITECTURE_${arch}=1) endif()