Skip to content

Commit 23ffbfd

Browse files
committed
unset BUILD_TESTING from the cache if it was not set before
1 parent ce3b5c0 commit 23ffbfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/opentracing-cpp.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if(NOT OpenTracing_FOUND)
3434
if(DEFINED _SAVED_BUILD_TESTING)
3535
set(BUILD_TESTING ${_SAVED_BUILD_TESTING} CACHE BOOL "" FORCE)
3636
else()
37-
unset(BUILD_TESTING)
37+
unset(BUILD_TESTING CACHE)
3838
endif()
3939

4040
# Patch the opentracing targets to set missing includes, add namespaced alias targets, disable iwyu and clang-tidy.

0 commit comments

Comments
 (0)