diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d6d49f2a..f67327280 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3028,7 +3028,9 @@ if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND NOT WIN32) add_compile_options(-mtune=native) endif() else() - add_compile_options(-march=native) + if(NOT ENABLE_CUDA) + add_compile_options(-march=native) + endif() endif() endif() endif()