Skip to content

Commit b4702d4

Browse files
committed
findDependencies.cmake: removed unnecessary setting of CMAKE_INCLUDE_CURRENT_DIR [skip ci]
1 parent 8efdef2 commit b4702d4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmake/findDependencies.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ if(HAVE_RULES)
4545
endif()
4646
endif()
4747

48-
set(CMAKE_INCLUDE_CURRENT_DIR ON)
49-
5048
find_package(Python COMPONENTS Interpreter)
5149

5250
if(NOT Python_Interpreter_FOUND)

gui/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ CheckOptions:
3434
set_target_properties(cppcheck-gui PROPERTIES AUTOMOC ON)
3535
set_target_properties(cppcheck-gui PROPERTIES AUTOUIC ON)
3636
set_target_properties(cppcheck-gui PROPERTIES WIN32_EXECUTABLE ON)
37-
target_include_directories(cppcheck-gui PRIVATE ${PROJECT_SOURCE_DIR}/lib/ ${PROJECT_SOURCE_DIR}/frontend/)
37+
# the GUI include is needed so the includes are found from the generated headers - TODO: is it possible to get rid of this?
38+
target_include_directories(cppcheck-gui PRIVATE ${PROJECT_SOURCE_DIR}/lib/ ${PROJECT_SOURCE_DIR}/frontend/ ${PROJECT_SOURCE_DIR}/gui/)
3839
if(USE_BUNDLED_TINYXML2)
3940
target_externals_include_directories(cppcheck-gui PRIVATE ${PROJECT_SOURCE_DIR}/externals/tinyxml2/)
4041
else()

0 commit comments

Comments
 (0)