From 0542483edc90c84ce72d11b9d272ac5d70296a16 Mon Sep 17 00:00:00 2001 From: Dominik Drexler Date: Fri, 5 Jan 2024 13:59:17 +0100 Subject: [PATCH] . --- CMakeLists.txt | 3 +++ src/CMakeLists.txt | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 20779fa6..c0c6f3bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,6 +61,9 @@ configure_ccache() # configure_boost() set(BOOST_MIN_VERSION "1.74.0") find_package(Boost ${BOOST_MIN_VERSION} REQUIRED) +if(Boost_FOUND) + include_directories(${Boost_INCLUDE_DIRS}) +endif() #include_directories("${PROJECT_SOURCE_DIR}/external/flatbuffers/include") diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index db5150d2..c1e5f33d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -12,9 +12,9 @@ file(GLOB SRC_FILES "problem/pddl/*.cpp" "problem/pddl/parser/*.cpp") add_library(parsers STATIC ${SRC_FILES}) -target_include_directories(parsers - PUBLIC - ${Boost_INCLUDE_DIRS}) +#target_include_directories(parsers +# PUBLIC +# ${Boost_INCLUDE_DIRS}) # target_link_libraries(parsers PRIVATE flatbuffers) # Create an alias for simpler reference