Skip to content

Commit

Permalink
[cmake] use target_include_directories for gui system includes
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 12, 2021
1 parent 84afbea commit e3bf72c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/gui/CMakeLists.txt
Expand Up @@ -1367,10 +1367,6 @@ include_directories(
${CMAKE_BINARY_DIR}/src/ui
${CMAKE_BINARY_DIR}/src/native
)
include_directories(SYSTEM
${QWT_INCLUDE_DIR}
${QSCINTILLA_INCLUDE_DIR}
)

if (WITH_EPT)
include_directories(
Expand Down Expand Up @@ -1410,6 +1406,11 @@ add_library(qgis_gui SHARED
${QGIS_GUI_SRCS} ${QGIS_GUI_HDRS} ${QGIS_GUI_PRIVATE_HDRS}
)

target_include_directories(qgis_gui SYSTEM PUBLIC
${QWT_INCLUDE_DIR}
${QSCINTILLA_INCLUDE_DIR}
)

GENERATE_EXPORT_HEADER(
qgis_gui
BASE_NAME GUI
Expand Down

0 comments on commit e3bf72c

Please sign in to comment.