Skip to content

Commit

Permalink
Export NATIVE_ARCH in cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Jan 5, 2025
1 parent d23856a commit 17cd5c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ elseif (HAVE_S390X)
set(ZARCH 1 CACHE INTERNAL "")
endif ()

if (NATIVE_ARCH AND (MMSEQS_ARCH STREQUAL ""))
if (MMSEQS_ARCH)
set(NATIVE_ARCH 0 CACHE INTERNAL "")
endif ()

if (NATIVE_ARCH)
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm.*|ARM.*|aarch64.*|AARCH64.*)")
set(ARM 1 CACHE INTERNAL "")
elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "PPC64*|ppc64*|powerpc64*")
Expand Down

0 comments on commit 17cd5c0

Please sign in to comment.