Skip to content

Commit

Permalink
Added arch check in ndt_omp (autowarefoundation#140)
Browse files Browse the repository at this point in the history
Signed-off-by: Servando German Serrano <servando.german.serrano@linaro.org>
  • Loading branch information
sgermanserrano authored Dec 7, 2020
1 parent fc0a5a4 commit aca4a60
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ target_include_directories(ndt_omp
$<INSTALL_INTERFACE:include>
)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(ndt_omp
PRIVATE
# -mavx causes a lot of errors!!
-msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2
)
if (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)")
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(ndt_omp
PRIVATE
# -mavx causes a lot of errors!!
-msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2
)
endif()
endif()

set(NDT_OMP_DEPENDENCIES
Expand Down

0 comments on commit aca4a60

Please sign in to comment.