From 25835a2e23a7066b17f7eae1e820b3aeecb7819b Mon Sep 17 00:00:00 2001 From: Eugen Betke Date: Mon, 21 Oct 2024 18:09:39 +0200 Subject: [PATCH] Modernisation: Fix include dirs --- CMakeLists.txt | 2 -- src/CMakeLists.txt | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b002b1b2..05bd33688 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -435,8 +435,6 @@ endforeach() ### include directories include_directories( - "accessor" - "geo_iterator" ${ECCODES_INCLUDE_DIRS} ${ECCODES_EXTRA_INCLUDE_DIRS} ) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a012d66e7..aa38b6ad3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -8,6 +8,12 @@ # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. # + +include_directories( + "${CMAKE_CURRENT_SOURCE_DIR}/accessor" + "${CMAKE_CURRENT_SOURCE_DIR}/geo_iterator" + ) + list( APPEND eccodes_src_files accessor/grib_accessor.cc accessor/grib_accessors_list.cc