Skip to content

Commit

Permalink
(cmake) tidy-up
Browse files Browse the repository at this point in the history
  • Loading branch information
uatuko committed Jan 5, 2025
1 parent 10a1e8d commit 8caf58d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ option(RUEK_BUILD_BENCHMARKS

include(CMakeDependentOption)
cmake_dependent_option(RUEK_BUILD_TESTING
"Build tests when this is the root project" ON
"CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR" OFF
"Build tests when BUILD_TESTING flag is set or this is the root project" ON
"BUILD_TESTING OR CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR" OFF
)

cmake_dependent_option(RUEK_ENABLE_COVERAGE
"Enable code coverage when RUEK_BUILD_TESTING is enabled and this is the root project" ON
"RUEK_BUILD_TESTING;CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR" OFF
"RUEK_BUILD_TESTING; CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR" OFF
)

if (RUEK_ENABLE_COVERAGE)
Expand Down

0 comments on commit 8caf58d

Please sign in to comment.