Skip to content

Commit 18d7ac8

Browse files
committed
[interpreter] Set the InterOp testing flag based on ROOT
1 parent 51e1481 commit 18d7ac8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: interpreter/CMakeLists.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,11 @@ set(CPPINTEROP_INCLUDE_DIRS
523523
CACHE STRING "CppInterOp include directories.")
524524

525525
#---Set InterOp to build on Cling, this can be toggled to use Clang-REPL-------------------------------------------------------
526-
set(CPPINTEROP_USE_CLING ON BOOL "Use Cling as backend")
526+
set(CPPINTEROP_USE_CLING ON CACHE BOOL "")
527+
528+
#---Disable testing on InterOp if ROOT's testing is OFF (InterOp tests are enabled by default) -------------------------------------------------------
529+
if(NOT testing)
530+
set(CPPINTEROP_ENABLE_TESTING OFF CACHE BOOL "")
531+
endif()
527532

528533
add_subdirectory(CppInterOp)

0 commit comments

Comments
 (0)