diff --git a/CMakeLists.txt b/CMakeLists.txt index ea2ba6055afcd49e9f6a89709ef7c2984b9613bd..b97052f4d570e1b108b0107df78a90b69bc9f060 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1086,15 +1086,6 @@ if ( WALBERLA_BUILD_WITH_CUDA ) list( APPEND CUDA_NVCC_FLAGS "-Wno-deprecated-gpu-targets") - # FindCUDA does not respect system includes i.e. there are also warnings for boost etc reported (as of cmake 3.5.1) - # if all includes are added to the flags manually as sytem includes they occur double on the command line - # but the compiler seems to note the "isystem" not the "-I" - # it is also not possible to get all system include directories - so as a workaround we at least add boost here - # as system include - foreach( boostInclude ${Boost_INCLUDE_DIRS} AND NOT WALBERLA_CXX_COMPILER_IS_MSVC ) - list( APPEND CUDA_NVCC_FLAGS "-isystem ${boostInclude}" ) - endforeach() - if ( NOT "${CUDA_NVCC_FLAGS}" MATCHES "-std=" AND NOT WALBERLA_CXX_COMPILER_IS_MSVC ) list ( APPEND CUDA_NVCC_FLAGS "-std=c++14" ) endif ()