1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 20:20:35 +00:00

Fix for CUDA compiler

This commit is contained in:
Carles Fernandez 2020-08-27 14:51:02 +02:00
parent 2e74205cb1
commit 511f24693b
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -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()