From 3a78f7dcb8bdd36c6f370489eb605639920846bf Mon Sep 17 00:00:00 2001 From: Martin Bauer <martin.bauer@fau.de> Date: Fri, 2 Nov 2018 08:45:08 +0100 Subject: [PATCH] CUDA CMake - removed boost "isystem" modification - recent GCC version produce error when "-isystem /usr/include" is added to command line. Error is: '#include_next <math.h>' not found - the removed "hack" added the cuda include dir with "-isystem" to the CUDA compiler arguments to prevent warnings from boost header -> currently there seem to be no warnings generated from boost headers so "hack" is removed --- CMakeLists.txt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ea2ba6055..b97052f4d 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 () -- GitLab