diff --git a/CGALimageIO/src/CGALImageIO/CMakeLists.txt b/CGALimageIO/src/CGALImageIO/CMakeLists.txt index c5aa26e526b..48c8e5a7bee 100644 --- a/CGALimageIO/src/CGALImageIO/CMakeLists.txt +++ b/CGALimageIO/src/CGALImageIO/CMakeLists.txt @@ -48,7 +48,7 @@ if(OPENGL_FOUND) use_essential_libs() - include_directories( ${CGAL_3RD_PARTY_INCLUDE_DIRS} ${CGAL_ImageIO_3RD_PARTY_INCLUDE_DIRS} ) + include_directories( SYSTEM ${CGAL_3RD_PARTY_INCLUDE_DIRS} ${CGAL_ImageIO_3RD_PARTY_INCLUDE_DIRS} ) link_directories ( ${CGAL_LIBRARIES_DIR} ${CGAL_3RD_PARTY_LIBRARIES_DIRS} ) diff --git a/Core/src/CGALCore/CMakeLists.txt b/Core/src/CGALCore/CMakeLists.txt index 1494ae5b374..8e5e50f8553 100644 --- a/Core/src/CGALCore/CMakeLists.txt +++ b/Core/src/CGALCore/CMakeLists.txt @@ -2,7 +2,7 @@ message("Configuring libCGAL_Core") use_essential_libs() -include_directories (${CGAL_3RD_PARTY_INCLUDE_DIRS}) +include_directories (SYSTEM ${CGAL_3RD_PARTY_INCLUDE_DIRS}) add_definitions(${CGAL_3RD_PARTY_DEFINITIONS}) diff --git a/GraphicsView/src/CGALQt4/CMakeLists.txt b/GraphicsView/src/CGALQt4/CMakeLists.txt index eb26cc59492..d956c43d59b 100644 --- a/GraphicsView/src/CGALQt4/CMakeLists.txt +++ b/GraphicsView/src/CGALQt4/CMakeLists.txt @@ -59,7 +59,7 @@ if( QT4_FOUND ) use_essential_libs() - include_directories( ${CGAL_3RD_PARTY_INCLUDE_DIRS} ${CGAL_Qt4_3RD_PARTY_INCLUDE_DIRS} ) + include_directories( SYSTEM ${CGAL_3RD_PARTY_INCLUDE_DIRS} ${CGAL_Qt4_3RD_PARTY_INCLUDE_DIRS} ) link_directories ( ${CGAL_LIBRARIES_DIR} ${CGAL_3RD_PARTY_LIBRARIES_DIRS} ) diff --git a/Installation/cmake/modules/CGAL_UseBLAS.cmake b/Installation/cmake/modules/CGAL_UseBLAS.cmake index 37de5468bc5..941b795ba78 100644 --- a/Installation/cmake/modules/CGAL_UseBLAS.cmake +++ b/Installation/cmake/modules/CGAL_UseBLAS.cmake @@ -5,7 +5,7 @@ if ( BLAS_FOUND AND NOT BLAS_SETUP ) message( STATUS "UseBLAS" ) message( STATUS "BLAS include: ${BLAS_INCLUDE_DIR}" ) - include_directories ( ${BLAS_INCLUDE_DIR} ) + include_directories ( SYSTEM ${BLAS_INCLUDE_DIR} ) message( STATUS "BLAS definitions: ${BLAS_DEFINITIONS}" ) add_definitions( ${BLAS_DEFINITIONS} ) diff --git a/Installation/cmake/modules/CGAL_UseLAPACK.cmake b/Installation/cmake/modules/CGAL_UseLAPACK.cmake index b88f53e151f..89790863a72 100644 --- a/Installation/cmake/modules/CGAL_UseLAPACK.cmake +++ b/Installation/cmake/modules/CGAL_UseLAPACK.cmake @@ -5,7 +5,7 @@ if ( LAPACK_FOUND AND NOT LAPACK_SETUP ) message( STATUS "UseLAPACK" ) message( STATUS "LAPACK include: ${LAPACK_INCLUDE_DIR}" ) - include_directories ( ${LAPACK_INCLUDE_DIR} ) + include_directories ( SYSTEM ${LAPACK_INCLUDE_DIR} ) message( STATUS "LAPACK definitions: ${LAPACK_DEFINITIONS}" ) add_definitions( ${LAPACK_DEFINITIONS} ) diff --git a/Installation/cmake/modules/CGAL_UseLEDA.cmake b/Installation/cmake/modules/CGAL_UseLEDA.cmake index d16bfb12565..a66a58badca 100644 --- a/Installation/cmake/modules/CGAL_UseLEDA.cmake +++ b/Installation/cmake/modules/CGAL_UseLEDA.cmake @@ -5,7 +5,7 @@ if ( LEDA_FOUND AND NOT LEDA_SETUP ) message( STATUS "UseLEDA" ) message( STATUS "LEDA include: ${LEDA_INCLUDE_DIR}" ) - include_directories ( ${LEDA_INCLUDE_DIR} ) + include_directories ( SYSTEM ${LEDA_INCLUDE_DIR} ) message( STATUS "LEDA definitions: ${LEDA_DEFINITIONS}" ) add_definitions( ${LEDA_DEFINITIONS} ) diff --git a/Installation/cmake/modules/CGAL_UseMKL.cmake b/Installation/cmake/modules/CGAL_UseMKL.cmake index 9ae7f2e6207..50fd0328adf 100644 --- a/Installation/cmake/modules/CGAL_UseMKL.cmake +++ b/Installation/cmake/modules/CGAL_UseMKL.cmake @@ -4,7 +4,7 @@ if ( MKL_FOUND AND NOT CGAL_MKL_SETUP ) message( STATUS "MKL include: ${MKL_INCLUDE_DIR}" ) - include_directories ( ${MKL_INCLUDE_DIR} ) + include_directories ( SYSTEM ${MKL_INCLUDE_DIR} ) message( STATUS "MKL definitions: ${MKL_DEFINITIONS}" ) add_definitions( ${MKL_DEFINITIONS} ) diff --git a/Installation/cmake/modules/CGAL_UseMPFI.cmake b/Installation/cmake/modules/CGAL_UseMPFI.cmake index 17692545ea5..11198b5d784 100644 --- a/Installation/cmake/modules/CGAL_UseMPFI.cmake +++ b/Installation/cmake/modules/CGAL_UseMPFI.cmake @@ -25,7 +25,7 @@ if( MPFI_FOUND AND NOT MPFI_SETUP ) ) if( COMPILED_MPFI_TEST AND MPFI_TEST_RESULT EQUAL 0) - include_directories( ${MPFI_INCLUDE_DIR} ) + include_directories( SYSTEM ${MPFI_INCLUDE_DIR} ) link_directories( ${MPFI_LIBRARIES_DIR} ) add_definitions( ${MPFI_DEFINITIONS} "-DCGAL_USE_MPFI" ) link_libraries( ${MPFI_LIBRARIES} ) diff --git a/Installation/cmake/modules/CGAL_UseRS.cmake b/Installation/cmake/modules/CGAL_UseRS.cmake index 80b92790093..a3e4dcc205c 100644 --- a/Installation/cmake/modules/CGAL_UseRS.cmake +++ b/Installation/cmake/modules/CGAL_UseRS.cmake @@ -21,7 +21,7 @@ if( RS_FOUND AND NOT RS_SETUP ) endif( IS_OLD_GXX ) endif( APPLE AND CMAKE_COMPILER_IS_GNUCXX ) - include_directories ( ${RS_INCLUDE_DIR} ) + include_directories ( SYSTEM ${RS_INCLUDE_DIR} ) add_definitions( ${RS_DEFINITIONS} "-DCGAL_USE_RS" ) link_libraries( ${RS_LIBRARIES} ) diff --git a/Installation/cmake/modules/CGAL_UseRS3.cmake b/Installation/cmake/modules/CGAL_UseRS3.cmake index 27cd09c1267..db6e1001809 100644 --- a/Installation/cmake/modules/CGAL_UseRS3.cmake +++ b/Installation/cmake/modules/CGAL_UseRS3.cmake @@ -11,7 +11,7 @@ if( RS3_FOUND AND NOT RS3_SETUP ) message( STATUS "RS3 definitions: ${RS3_DEFINITIONS}" ) message( STATUS "RS3 libraries: ${RS3_LIBRARIES}" ) - include_directories ( ${RS3_INCLUDE_DIR} ) + include_directories ( SYSTEM ${RS3_INCLUDE_DIR} ) add_definitions( ${RS3_DEFINITIONS} "-DCGAL_USE_RS3" ) link_libraries( ${RS3_LIBRARIES} ) diff --git a/Installation/cmake/modules/CGAL_UseTAUCS.cmake b/Installation/cmake/modules/CGAL_UseTAUCS.cmake index 3a3035ca411..b980dee1d31 100644 --- a/Installation/cmake/modules/CGAL_UseTAUCS.cmake +++ b/Installation/cmake/modules/CGAL_UseTAUCS.cmake @@ -5,7 +5,7 @@ if ( TAUCS_FOUND AND NOT TAUCS_SETUP ) message( STATUS "UseTAUCS" ) message( STATUS "TAUCS include: ${TAUCS_INCLUDE_DIR}" ) - include_directories ( ${TAUCS_INCLUDE_DIR} ) + include_directories ( SYSTEM ${TAUCS_INCLUDE_DIR} ) message( STATUS "TAUCS definitions: ${TAUCS_DEFINITIONS}" ) add_definitions( ${TAUCS_DEFINITIONS} "-DCGAL_USE_TAUCS" ) diff --git a/Installation/cmake/modules/UseCGAL.cmake b/Installation/cmake/modules/UseCGAL.cmake index 1a18a69bf33..00b2de8710a 100644 --- a/Installation/cmake/modules/UseCGAL.cmake +++ b/Installation/cmake/modules/UseCGAL.cmake @@ -38,7 +38,8 @@ if(NOT USE_CGAL_FILE_INCLUDED) #message (STATUS "LIB: ${CGAL_LIBRARY}") #message (STATUS "LIBS: ${CGAL_LIBRARIES}") - include_directories ( ${CGAL_INCLUDE_DIRS} ${CGAL_3RD_PARTY_INCLUDE_DIRS} ) + include_directories ( ${CGAL_INCLUDE_DIRS}) + include_directories ( SYSTEM ${CGAL_3RD_PARTY_INCLUDE_DIRS} ) add_definitions ( ${CGAL_3RD_PARTY_DEFINITIONS} ${CGAL_DEFINITIONS} ) link_directories ( ${CGAL_LIBRARIES_DIR} ${CGAL_3RD_PARTY_LIBRARIES_DIRS} ) diff --git a/Installation/cmake/modules/UseESBTL.cmake b/Installation/cmake/modules/UseESBTL.cmake index d72567a5da9..5c820753402 100644 --- a/Installation/cmake/modules/UseESBTL.cmake +++ b/Installation/cmake/modules/UseESBTL.cmake @@ -1,4 +1,4 @@ # This module setups the compiler for using ESBTL library. # It assumes that find_package(ESBTL) was already called. -include_directories( ${ESBTL_INCLUDE_DIR} ) +include_directories( SYSTEM ${ESBTL_INCLUDE_DIR} ) diff --git a/Installation/cmake/modules/UseEigen3.cmake b/Installation/cmake/modules/UseEigen3.cmake index 88892219b3d..e3ed18be243 100644 --- a/Installation/cmake/modules/UseEigen3.cmake +++ b/Installation/cmake/modules/UseEigen3.cmake @@ -2,7 +2,7 @@ # It assumes that find_package(Eigen3) was already called. -include_directories( ${EIGEN3_INCLUDE_DIR} ) +include_directories( SYSTEM ${EIGEN3_INCLUDE_DIR} ) add_definitions(-DCGAL_EIGEN3_ENABLED) diff --git a/Installation/src/CGAL/CMakeLists.txt b/Installation/src/CGAL/CMakeLists.txt index 8bef65a6f11..fc153457c3c 100644 --- a/Installation/src/CGAL/CMakeLists.txt +++ b/Installation/src/CGAL/CMakeLists.txt @@ -2,7 +2,7 @@ message("Configuring libCGAL") use_essential_libs() -include_directories (${CGAL_3RD_PARTY_INCLUDE_DIRS}) +include_directories (SYSTEM ${CGAL_3RD_PARTY_INCLUDE_DIRS}) add_definitions(${CGAL_3RD_PARTY_DEFINITIONS}) diff --git a/Qt_widget/src/CGALQt3/CMakeLists.txt b/Qt_widget/src/CGALQt3/CMakeLists.txt index 7d9f3f45627..0ced524340b 100644 --- a/Qt_widget/src/CGALQt3/CMakeLists.txt +++ b/Qt_widget/src/CGALQt3/CMakeLists.txt @@ -39,7 +39,7 @@ if( QT3_FOUND ) use_essential_libs() - include_directories( ${CGAL_3RD_PARTY_INCLUDE_DIRS} ${CGAL_Qt3_3RD_PARTY_INCLUDE_DIRS} ) + include_directories( SYSTEM ${CGAL_3RD_PARTY_INCLUDE_DIRS} ${CGAL_Qt3_3RD_PARTY_INCLUDE_DIRS} ) link_directories ( ${CGAL_LIBRARIES_DIR} ${CGAL_3RD_PARTY_LIBRARIES_DIRS} )