From 76f668117a8f471ba547cfdc20ccb5c4df1a4d33 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 15 Sep 2026 10:44:07 +0500 Subject: [PATCH] cmake: drop global `INCLUDE_DIRECTORIES` variable It doesn't seem to be used anywhere and using this wide include might hide issues if some include actually doesn't reach some target. --- cmake/CMakeLists.txt | 2 +- src/ifcmax/CMakeLists.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 98691d8e11..d021f833c4 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -489,7 +489,7 @@ else() endif() endif(MSVC) -include_directories(${INCLUDE_DIRECTORIES} +include_directories( ${Boost_INCLUDE_DIRS} ${CGAL_INCLUDE_DIR} ${GMP_INCLUDE_DIR} ${MPFR_INCLUDE_DIR} ) diff --git a/src/ifcmax/CMakeLists.txt b/src/ifcmax/CMakeLists.txt index 330e4529cb..0e581e2927 100644 --- a/src/ifcmax/CMakeLists.txt +++ b/src/ifcmax/CMakeLists.txt @@ -35,7 +35,6 @@ if(HAS_MAX) message(STATUS "Building IFCMax library for Autodesk 3ds Max SDK ${max_year}") include_directories( - ${INCLUDE_DIRECTORIES} ${OPENCOLLADA_INCLUDE_DIRS} ${ICU_INCLUDE_DIR} ${Boost_INCLUDE_DIRS}