disable benchmark build for CI/CD

This commit is contained in:
2025-09-22 02:34:52 +03:00
parent 2bb0c82c30
commit c4d10f8872
3 changed files with 12 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ jobs:
- name: Configure (cmake --preset)
shell: bash
run: cmake --preset linux-release -DOMATH_BUILD_TESTS=ON
run: cmake --preset linux-release -DOMATH_BUILD_TESTS=ON -DOMATH_BUILD_BENCHMARK=OFF
- name: Build
shell: bash
@@ -68,7 +68,7 @@ jobs:
- name: Configure (cmake --preset)
shell: bash
run: cmake --preset windows-release -DOMATH_BUILD_TESTS=ON
run: cmake --preset windows-release -DOMATH_BUILD_TESTS=ON -DOMATH_BUILD_BENCHMARK=OFF
- name: Build
shell: bash

View File

@@ -98,9 +98,8 @@ endif ()
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_23)
if (OMATH_BUILD_TESTS OR OMATH_BUILD_BENCHMARK)
add_subdirectory(extlibs)
endif ()
add_subdirectory(extlibs)
if (OMATH_BUILD_TESTS)
add_subdirectory(tests)

View File

@@ -1,2 +1,8 @@
add_subdirectory(googletest)
add_subdirectory(benchmark)
if (OMATH_BUILD_TESTS)
add_subdirectory(googletest)
endif ()
if (OMATH_BUILD_BENCHMARK)
add_subdirectory(benchmark)
endif()