Skip to content

Commit

Permalink
GHI #20 Fix PATOMIC_BUILD_TESTING option
Browse files Browse the repository at this point in the history
Signed-off-by: doodspav <[email protected]>
  • Loading branch information
doodspav committed Nov 1, 2023
1 parent ce8e8cd commit 2498610
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/OptionVariables.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,15 @@ endif()
if(PROJECT_IS_TOP_LEVEL)
option(BUILD_TESTING "Build tests" OFF)
endif()
if(PROJECT_IS_TOP_LEVEL AND BUILD_TESTING)
set(build_testing ON)
endif()
option(
PATOMIC_BUILD_TESTING
"Override BUILD_TESTING for ${package_name} library"
${BUILD_TESTING}
${build_testing}
)
set(build_testing )
mark_as_advanced(PATOMIC_BUILD_TESTING)


Expand Down

0 comments on commit 2498610

Please sign in to comment.