Skip to content

Commit 5314202

Browse files
authored
[cmake][interop] Disable testing if no internet (#19298)
* [cmake][interop] Disable testing if no internet Disable `CppInterOp testing` when there is no internet connection * [cmake] Move the connection test one level up
1 parent 59d16bf commit 5314202

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

interpreter/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,9 +554,13 @@ set(CPPINTEROP_USE_CLING ON CACHE BOOL "" FORCE)
554554
set(CPPINTEROP_USE_REPL OFF CACHE BOOL "" FORCE)
555555

556556
#---Disable testing on InterOp if ROOT's testing is OFF (InterOp tests are enabled by default) -------------------------------------------------------
557-
if(testing)
557+
ROOT_CHECK_CONNECTION("CPPINTEROP_ENABLE_TESTING=OFF")
558+
if(testing AND NOT NO_CONNECTION)
558559
set(CPPINTEROP_ENABLE_TESTING ON CACHE BOOL "" FORCE)
559560
else()
561+
if(NO_CONNECTION)
562+
message(STATUS "No internet connection, disabling the `CppInterOp testing infrastructure` option")
563+
endif()
560564
set(CPPINTEROP_ENABLE_TESTING OFF CACHE BOOL "")
561565
endif()
562566

0 commit comments

Comments
 (0)