File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,9 @@ OPTION(XTENSOR_ENABLE_WERROR "Turn on -Werror" OFF)
6262set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DXSIMD_ENABLE_XTL_COMPLEX=1" )
6363if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR (CMAKE_CXX_COMPILER_ID MATCHES "Intel" AND NOT WIN32 ))
6464 CHECK_CXX_COMPILER_FLAG(-march=native arch_native_supported)
65- # if(arch_native_supported AND NOT CMAKE_CXX_FLAGS MATCHES "-march")
66- # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
67- # endif()
65+ if (arch_native_supported AND NOT CMAKE_CXX_FLAGS MATCHES "-march" )
66+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native" )
67+ endif ()
6868 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_cxx_std_flag} -Wunused-parameter -Wextra -Wreorder -Wconversion -Wno-sign-conversion " )
6969 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wold-style-cast -Wunused-variable -ftemplate-backtrace-limit=0" )
7070 if (XTENSOR_DISABLE_EXCEPTIONS)
You can’t perform that action at this time.
0 commit comments