Skip to content

Commit

Permalink
Fixes for building on Aarch64
Browse files Browse the repository at this point in the history
Signed-off-by: Vinícius Ferrão <[email protected]>
  • Loading branch information
viniciusferrao committed Jul 12, 2023
1 parent 0a50080 commit aeec1b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ if (cloysterhpc_ENABLE_CONAN)
string(TOUPPER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_UPPER)
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" CMAKE_SYSTEM_PROCESSOR_LOWER)

# Hack to fix wrong architecture name for aarch64 during Conan install
if (CMAKE_SYSTEM_PROCESSOR_LOWER STREQUAL "aarch64")
set(CMAKE_SYSTEM_PROCESSOR_LOWER "armv8")
endif()

include(${doctest_DIR}/doctest-${CMAKE_BUILD_TYPE_LOWER}-${CMAKE_SYSTEM_PROCESSOR_LOWER}-data.cmake)
include(${doctest_BUILD_DIRS_${CMAKE_BUILD_TYPE_UPPER}}/doctest.cmake)
else()
Expand Down

0 comments on commit aeec1b8

Please sign in to comment.