[utilities/konsole] src: Remove duplicated explicit include dirs by adding current dir

Friedrich W. H. Kossebau <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 858120622033e3b334038e7fb4f64cd77fedc0a4 by Friedrich W. H. Kossebau.
Committed on 07/08/2026 at 16:23.
Pushed by kossebau into branch 'master'.

Remove duplicated explicit include dirs by adding current dir

KDECMakeSettings sets CMAKE_INCLUDE_CURRENT_DIR &
CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE, which already cares for that.

M  +0    -3    src/colorscheme/CMakeLists.txt
M  +1    -2    src/containers/CMakeLists.txt

https://invent.kde.org/utilities/konsole/-/commit/858120622033e3b334038e7fb4f64cd77fedc0a4

diff --git a/src/colorscheme/CMakeLists.txt b/src/colorscheme/CMakeLists.txt
index d2d8cee12..86c349ef6 100644
--- a/src/colorscheme/CMakeLists.txt
+++ b/src/colorscheme/CMakeLists.txt
@@ -30,9 +30,6 @@ add_library(konsolecolorscheme
 set_target_properties(konsolecolorscheme PROPERTIES POSITION_INDEPENDENT_CODE ON)
 
 # generate_export_header(konsolecolorscheme BASE_NAME konsolecolorscheme)
-target_include_directories(konsolecolorscheme
-    PUBLIC ${CMAKE_CURRENT_BINARY_DIR}
-    INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
 
 target_link_libraries(
     konsolecolorscheme
diff --git a/src/containers/CMakeLists.txt b/src/containers/CMakeLists.txt
index 22d98d57e..3f9ba8544 100644
--- a/src/containers/CMakeLists.txt
+++ b/src/containers/CMakeLists.txt
@@ -32,7 +32,6 @@ if(HAVE_KAPSULE)
 endif()
 
 target_include_directories(konsolecontainers
-    PUBLIC
-    ${CMAKE_CURRENT_SOURCE_DIR}
+    PRIVATE
     ${CMAKE_BINARY_DIR}/src  # For config-konsole.h
 )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.