Skip to content

Commit

Permalink
Examples without ASAN.
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed Dec 2, 2024
1 parent 1fee99b commit 9de6603
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,36 +59,36 @@ function(compile_example example_source)
string(REPLACE ".cpp" "_bin" example_name ${example_filename})

add_executable(${example_name} ${example_source})
target_link_libraries(${example_name} PUBLIC HighFive HighFiveWarnings HighFiveFlags)
if(${ARGC} EQUAL 2)
target_link_libraries(${example_name} PUBLIC ${ARGV1})
target_link_libraries(${example_name} PUBLIC HighFive HighFiveWarnings)
if(${ARGC} GREATER_EQUAL 2)
target_link_libraries(${example_name} PUBLIC ${ARGV1} ${ARGV2} ${ARGV3} ${ARGV4})
endif()
endfunction()


foreach(example_source ${core_examples})
compile_example(${example_source})
compile_example(${example_source} HighFiveFlags)
endforeach()

foreach(example_source ${easy_examples})
compile_example(${example_source} HighFiveOptionalDependencies)
compile_example(${example_source} HighFiveFlags HighFiveOptionalDependencies)
endforeach()

if(HIGHFIVE_TEST_SPAN)
foreach(example_source ${span_examples})
compile_example(${example_source})
compile_example(${example_source} HighFiveFlags)
endforeach()
endif()

if(HIGHFIVE_TEST_BOOST)
foreach(example_source ${boost_examples})
compile_example(${example_source} HighFiveBoostDependency)
compile_example(${example_source} HighFiveFlags HighFiveBoostDependency)
endforeach()
endif()

if(HIGHFIVE_TEST_EIGEN)
foreach(example_source ${eigen_examples})
compile_example(${example_source} HighFiveEigenDependency)
compile_example(${example_source} HighFiveFlags HighFiveEigenDependency)
endforeach()
endif()

Expand All @@ -105,7 +105,7 @@ if(${HDF5_HL_FOUND})
target_link_libraries(HighFiveHlHdf5Dependency ${HDF5_HL_LIBRARIES})

foreach(example_source ${hl_hdf5_examples})
compile_examples(${example_source} HighFiveHlHdf5Dependency)
compile_examples(${example_source} HighFiveFlags HighFiveHlHdf5Dependency)
endforeach()
endif()

Expand Down

0 comments on commit 9de6603

Please sign in to comment.