Commit 2fd00cc0 authored by Alvin Wong's avatar Alvin Wong

Make Boost header into system includes for all targets

Make Boost header into system includes for all targets, and remove
redundant include_directories commands regarding Boost_INCLUDE_DIRS.

This causes gcc to skip warnings within Boost headers and should remove
all Boost headers from dependency calculation.

Differential Revision: https://phabricator.kde.org/D9144
parent 10bf66ac
......@@ -448,7 +448,7 @@ endif()
add_definitions(-DBOOST_ALL_NO_LIB)
find_package(Boost 1.55 REQUIRED COMPONENTS system) # for pigment and stage
include_directories(${Boost_INCLUDE_DIRS})
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
##
## Test for GNU Scientific Library
##
......
......@@ -6,7 +6,6 @@ include_directories(
)
include_directories(SYSTEM
${EIGEN3_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
)
......
......@@ -21,7 +21,6 @@ include_directories(
include_directories(SYSTEM
${EIGEN3_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
)
if(FFTW3_FOUND)
......
......@@ -23,7 +23,6 @@ include_directories(
include_Directories(SYSTEM
${EIGEN3_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
)
if(HAVE_VC)
......
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
add_subdirectory(tests)
......@@ -4,7 +4,6 @@ include_directories(
)
include_directories(SYSTEM
${Boost_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
)
......
......@@ -11,9 +11,6 @@ endif ()
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/resources
${CMAKE_CURRENT_SOURCE_DIR}/compositeops)
include_directories(SYSTEM
${Boost_INCLUDE_DIRS}
)
set(FILE_OPENEXR_SOURCES)
set(LINK_OPENEXR_LIB)
......
include_directories( ${CMAKE_BINARY_DIR}/libs/psd #For kispsd_include.h
${Boost_INCLUDE_DIRS}
)
set(kritapsd_LIB_SRCS
......
......@@ -6,7 +6,6 @@ include_directories(
include_directories(SYSTEM
${EIGEN3_INCLUDE_DIR}
${OCIO_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
)
add_subdirectory( tests )
......
......@@ -3,9 +3,7 @@ project( lcmsengine )
add_subdirectory(tests)
include_directories(SYSTEM
${LCMS2_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
${LCMS2_INCLUDE_DIR}
)
include_directories(
......
if (NOT WIN32 AND NOT APPLE)
add_subdirectory(tests)
endif()
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
endif()
set(KRITA_ANIMATIONDOCKER_SOURCES
animation_dockers.cpp
......
include_directories(SYSTEM
${Boost_INCLUDE_DIRS}
)
set(KRITA_GRIDDOCKER_SOURCES griddocker.cpp griddocker_dock.cpp grid_config_widget.cpp)
ki18n_wrap_ui(KRITA_GRIDDOCKER_SOURCES
grid_config_widget.ui
......
......@@ -4,7 +4,6 @@ endif()
include_directories(SYSTEM
${OCIO_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
)
set(KRITA_LUTDOCKER_SOURCES
......
......@@ -2,7 +2,6 @@ macro_add_unittest_definitions()
include_directories(${CMAKE_SOURCE_DIR}/sdk/tests)
include_directories(SYSTEM
${OCIO_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
)
########### next target ###############
......
add_subdirectory(tests)
include_directories(SYSTEM
${Boost_INCLUDE_DIRS}
)
# import
set(kritacsvimport_SOURCES
......
......@@ -11,7 +11,6 @@ include_directories(
include_directories(SYSTEM
${ZLIB_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
)
set(LIB_PSD_SRCS
......
include_directories(SYSTEM
${Boost_INCLUDE_DIRS}
)
# export
set(kritaspriterexport_SOURCES
......
include_directories(${Boost_INCLUDE_DIRS})
# export
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
set(kritavideoexport_SOURCES
kis_video_export.cpp
video_saver.cpp
......
......@@ -2,8 +2,6 @@ if (NOT APPLE)
add_subdirectory(tests)
endif ()
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
set(kritadefaulttools_SOURCES
default_tools.cc
kis_tool_colorpicker.cc
......
......@@ -2,8 +2,6 @@ if (NOT WIN32 AND NOT APPLE)
add_subdirectory(tests)
endif()
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
set(kritatooltransform_SOURCES
tool_transform.cc
tool_transform_args.cc
......
......@@ -3,7 +3,6 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/..
${CMAKE_CURRENT_BINARY_DIR}/..
${CMAKE_SOURCE_DIR}/sdk/tests
${Boost_INCLUDE_DIRS}
)
macro_add_unittest_definitions()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment