We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f02ccf8 commit 8889d23Copy full SHA for 8889d23
cmake/Common.cmake
@@ -640,7 +640,10 @@ else()
640
endif()
641
642
if (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
643
- add_compile_options(-pipe -fpermissive -fopenmp -march=core2 -O2 -msse4.2)
+ add_compile_options(-pipe -fpermissive -fopenmp)
644
+ if (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)")
645
+ add_compile_options(-march=core2 -msse4.2)
646
+ endif()
647
add_link_options(-fopenmp)
648
649
if (NOT "${openiA_AVX_SUPPORT}" STREQUAL "${openiA_AVX_SUPPORT_DISABLED}")
0 commit comments