Skip to content

Commit 63efd09

Browse files
committed
[interpreter] Configure the flags for InterOp correctly
1 parent 27e4390 commit 63efd09

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

interpreter/CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,14 @@ 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 "" FORCE)
527+
set(CPPINTEROP_USE_REPL OFF CACHE BOOL "" FORCE)
528+
529+
#---Disable testing on InterOp if ROOT's testing is OFF (InterOp tests are enabled by default) -------------------------------------------------------
530+
if(testing)
531+
set(CPPINTEROP_ENABLE_TESTING ON CACHE BOOL "" FORCE)
532+
else()
533+
set(CPPINTEROP_ENABLE_TESTING OFF CACHE BOOL "")
534+
endif()
527535

528536
add_subdirectory(CppInterOp)

0 commit comments

Comments
 (0)