Skip to content

Commit 34fed8d

Browse files
committed
direct imports / highfive full inc path
1 parent c69074c commit 34fed8d

File tree

15 files changed

+15
-18
lines changed

15 files changed

+15
-18
lines changed

res/cmake/dep/highfive.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ if(HighFive)
1515
set(HIGHFIVE_USE_BOOST OFF)
1616
set(HIGHFIVE_BUILD_DOCS OFF) # conflicts with phare doc target
1717
set(HIGHFIVE_EXAMPLES OFF)
18+
include_directories(${HIGHFIVE_SRC}/include)
1819
add_subdirectory(${HIGHFIVE_SRC})
1920

2021
message("HighFive enabled - checking HDF5")

src/amr/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ target_link_libraries(${PROJECT_NAME} PUBLIC
9999
SAMRAI_tbox
100100
SAMRAI_xfer
101101
MPI::MPI_C
102+
cppdict
102103
)
103104
set_property(TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY LINK_FLAGS " ${PHARE_LINK_FLAGS}")
104105

src/core/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ endif(withPhlop)
6363

6464
add_library(${PROJECT_NAME} ${SOURCES_INC} ${SOURCES_CPP} ${CORE_EXTRA_SOURCES_CPP} )
6565
target_compile_options(${PROJECT_NAME} PRIVATE ${PHARE_WERROR_FLAGS})
66-
target_link_libraries(${PROJECT_NAME} PRIVATE phare_initializer MPI::MPI_C
66+
target_link_libraries(${PROJECT_NAME} PRIVATE phare_initializer MPI::MPI_C cppdict
6767
PUBLIC ${PHARE_BASE_LIBS}
6868
)
6969

@@ -73,6 +73,4 @@ if (NOT phare_configurator)
7373
endif()
7474

7575
set_property(TARGET ${PROJECT_NAME} PROPERTY INTERPROCEDURAL_OPTIMIZATION ${PHARE_INTERPROCEDURAL_OPTIMIZATION})
76-
target_include_directories(${PROJECT_NAME} PUBLIC
77-
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../subprojects>)
7876
set_property(TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY LINK_FLAGS " ${PHARE_LINK_FLAGS}")

src/core/errors.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <unordered_map>
1010

1111

12-
#include "cppdict/include/dict.hpp"
12+
#include "dict.hpp"
1313

1414

1515
namespace PHARE::core

src/core/utilities/types.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <vector>
1818

1919

20-
#include "cppdict/include/dict.hpp"
20+
#include "dict.hpp"
2121

2222

2323

src/diagnostic/diagnostic_model_view.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "amr/messengers/field_sum_transaction.hpp"
1010
#include "amr/data/field/field_variable_fill_pattern.hpp"
1111

12-
#include "cppdict/include/dict.hpp"
12+
#include "dict.hpp"
1313

1414
#include <SAMRAI/xfer/RefineAlgorithm.h>
1515

src/diagnostic/diagnostic_props.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <vector>
77
#include <cstddef>
88

9-
#include "cppdict/include/dict.hpp"
9+
#include "dict.hpp"
1010

1111
namespace PHARE::diagnostic
1212
{

src/diagnostic/diagnostic_writer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include "diagnostic_props.hpp"
55

6-
#include "cppdict/include/dict.hpp"
6+
#include "dict.hpp"
77

88
namespace PHARE::diagnostic
99
{

src/diagnostic/diagnostics.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include "diagnostic_manager.hpp"
2020

21-
#include "cppdict/include/dict.hpp"
21+
#include "dict.hpp"
2222

2323
#if PHARE_HAS_HIGHFIVE
2424

src/initializer/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ set(SOURCE_CPP data_provider.cpp)
1414
set(PYBIND11_CPP_STANDARD -std=c++17)
1515

1616
add_library(${PROJECT_NAME} SHARED ${SOURCE_CPP} ${SOURCE_INC})
17+
target_link_libraries(${PROJECT_NAME} PUBLIC cppdict)
1718
target_compile_options(${PROJECT_NAME} PRIVATE ${PHARE_WERROR_FLAGS})
1819
set_property(TARGET ${PROJECT_NAME} PROPERTY INTERPROCEDURAL_OPTIMIZATION ${PHARE_INTERPROCEDURAL_OPTIMIZATION})
1920
set_property(TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY LINK_FLAGS " ${PHARE_LINK_FLAGS}")
2021

21-
target_include_directories(${PROJECT_NAME} PUBLIC
22-
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../subprojects>)
23-
2422

2523
# this is the python module that wraps the add() method
2624
pybind11_add_module(dictator dictator.cpp)

0 commit comments

Comments
 (0)