From 81d8d43f809103cd81e6dcf05eee5189fe34a2d3 Mon Sep 17 00:00:00 2001 From: azim Date: Mon, 25 Nov 2024 17:31:31 +0100 Subject: [PATCH] change the settings to skip benchmarks if dataset env is not set. --- benchmarks/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/benchmarks/CMakeLists.txt b/benchmarks/CMakeLists.txt index 7f6c698..377ca46 100644 --- a/benchmarks/CMakeLists.txt +++ b/benchmarks/CMakeLists.txt @@ -1,15 +1,15 @@ if (NOT DEFINED ENV{ALP_DATASET_DIR_PATH}) message(WARNING "Set ALP_DATASET_DIR_PATH environment variable") else () + add_subdirectory(bench_speed) -endif () -add_subdirectory(bench_speed) + add_executable(bench_alp_compression_ratio bench_compression_ratio.cpp) + target_link_libraries(bench_alp_compression_ratio PUBLIC ALP gtest_main) + gtest_discover_tests(bench_alp_compression_ratio) +endif () -add_executable(bench_alp_compression_ratio bench_compression_ratio.cpp) -target_link_libraries(bench_alp_compression_ratio PUBLIC ALP gtest_main) -gtest_discover_tests(bench_alp_compression_ratio)