Skip to content

Commit

Permalink
message
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Patro committed Nov 15, 2020
1 parent db1e129 commit a1cc0b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ project(Salmon)
# detect host architecture
if(NOT DEFINED USE_ARM)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64.*|AARCH64.*|arm64.*|ARM64.*)")
message("Detected ARM host. Setting USE_ARM to true.")
set(USE_ARM TRUE)
# set char to be signed
add_compile_options(-fsigned-char)
set(SCHAR_FLAG "-fsigned-char")
else()
message("Detected non-ARM host. Setting USE_ARM to false.")
set(USE_ARM FALSE)
set(SCHAR_FLAG "")
endif()
Expand Down

0 comments on commit a1cc0b3

Please sign in to comment.