Skip to content

Commit

Permalink
Fix the way BUILD_TESTING works.
Browse files Browse the repository at this point in the history
  • Loading branch information
dabrahams committed Aug 26, 2024
1 parent 9074b43 commit 6a70e37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:

- name: Configure
run: |
${{ matrix.cmake-launcher }} cmake -Wno-dev -S . -B ./build -GNinja ${{env.compiler}} -DCMAKE_BUILD_TYPE=${{matrix.cmake_build_type}} -DCMAKE_CXX_STANDARD=17
${{ matrix.cmake-launcher }} cmake -Wno-dev -S . -B ./build -GNinja ${{env.compiler}} -DCMAKE_BUILD_TYPE=${{matrix.cmake_build_type}} -DCMAKE_CXX_STANDARD=17 -DBUILD_TESTING=ON
- name: Build
run: |
Expand Down
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,8 @@ if(NOT PROJECT_IS_TOP_LEVEL)
return()
endif()

#
# Adding the tests:
include(CTest)

if(BUILD_TESTING)
include(CTest)
message(AUTHOR_WARNING "Building Tests. Be sure to check out test/constexpr_tests.cpp for constexpr testing")
add_subdirectory(test)
endif()
Expand Down

0 comments on commit 6a70e37

Please sign in to comment.