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

Fix for CUDA compiler

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

View File

@ -2992,8 +2992,10 @@ if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND NOT WIN32)
add_compile_options(-Wno-missing-field-initializers) add_compile_options(-Wno-missing-field-initializers)
endif() endif()
if(CMAKE_CROSSCOMPILING OR NOT ENABLE_PACKAGING) if(CMAKE_CROSSCOMPILING OR NOT ENABLE_PACKAGING)
if(NOT ENABLE_CUDA)
add_compile_options(-Wno-psabi) add_compile_options(-Wno-psabi)
endif() endif()
endif()
if(IS_ARM) if(IS_ARM)
if((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "7.1.0") AND (CMAKE_VERSION VERSION_GREATER "3.1")) if((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "7.1.0") AND (CMAKE_VERSION VERSION_GREATER "3.1"))
if(CMAKE_CXX_STANDARD VERSION_LESS 17) if(CMAKE_CXX_STANDARD VERSION_LESS 17)