Skip to content

Commit 4371622

Browse files
committed
add hdf5 dep to abm study example
1 parent 3af580c commit 4371622

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cpp/examples/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,11 @@ add_executable(abm_minimal_example abm_minimal.cpp)
108108
target_link_libraries(abm_minimal_example PRIVATE memilio abm)
109109
target_compile_options(abm_minimal_example PRIVATE ${MEMILIO_CXX_FLAGS_ENABLE_WARNING_ERRORS})
110110

111-
add_executable(abm_parameter_study_example abm_parameter_study.cpp)
112-
target_link_libraries(abm_parameter_study_example PRIVATE memilio abm)
113-
target_compile_options(abm_parameter_study_example PRIVATE ${MEMILIO_CXX_FLAGS_ENABLE_WARNING_ERRORS})
111+
if(MEMILIO_HAS_HDF5)
112+
add_executable(abm_parameter_study_example abm_parameter_study.cpp)
113+
target_link_libraries(abm_parameter_study_example PRIVATE memilio abm)
114+
target_compile_options(abm_parameter_study_example PRIVATE ${MEMILIO_CXX_FLAGS_ENABLE_WARNING_ERRORS})
115+
endif()
114116

115117
add_executable(abm_history_example abm_history_object.cpp)
116118
target_link_libraries(abm_history_example PRIVATE memilio abm)

0 commit comments

Comments
 (0)