Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions interpreter/CppInterOp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ set(CMAKE_CXX_EXTENSIONS NO)
option(CPPINTEROP_USE_CLING "Use Cling as backend" OFF)
option(CPPINTEROP_USE_REPL "Use clang-repl as backend" ON)
option(CPPINTEROP_ENABLE_TESTING "Enable the CppInterOp testing infrastructure." ON)
ROOT_CHECK_CONNECTION("CPPINTEROP_ENABLE_TESTING=OFF")
if(NO_CONNECTION)
message(STATUS "No internet connection, disabling the `CppInterOp testing infrastructure` option")
set(CPPINTEROP_ENABLE_TESTING OFF CACHE BOOL "Disabled because there is no internet connection" FORCE)
endif()

if (CPPINTEROP_USE_CLING AND CPPINTEROP_USE_REPL)
message(FATAL_ERROR "We can only use Cling (${CPPINTEROP_USE_CLING}=On) or Repl (CPPINTEROP_USE_REPL=On), but not both of them.")
Expand Down
Loading