df3f66afef
* [cmake] check for internet connection. Fixes #8292 This should fix an issue with external packages requiring an internet connection when working offline. If there is no internet connection, they are either automatically disabled or raise a `FATAL_ERROR` if the `fail-on-missing` flag is `ON` * Add forgotten "is" (thanks @pamputt) * Add internet check for the forgotten 'davix' and 'ssl' options * Change the timeout value and add information messages (thanks Axel) * Let's download an existing file to test internet access * Disable also clad if there is no internet connection * Do not add the clad directory in case of no internet access * Change the logic for clad with no internet connection * disable clad early enough if there is no internet connection * Disable also xrootd when disabling builtin_xrootd
34 lines
1.2 KiB
CMake
34 lines
1.2 KiB
CMake
#-------------------------------------------------------------------------------
|
|
# CLING - the C++ LLVM-based InterpreterG :)
|
|
#
|
|
# This file is dual-licensed: you can choose to license it under the University
|
|
# of Illinois Open Source License or the GNU Lesser General Public License. See
|
|
# LICENSE.TXT for details.
|
|
#-------------------------------------------------------------------------------
|
|
if ((CLING_INCLUDE_TESTS OR CLING_BUILD_PLUGINS) AND NOT MSVC)
|
|
add_subdirectory(example)
|
|
endif()
|
|
|
|
if (CLING_BUILD_PLUGINS)
|
|
# # If we drop a compatible cmake project in this folder we should automatically
|
|
# # pick it up and build it.
|
|
# function(LISTSUBDIRS result curdir)
|
|
# file(GLOB children RELATIVE ${curdir} ${curdir}/*)
|
|
# set(dirlist "")
|
|
# foreach(child ${children})
|
|
# if(IS_DIRECTORY ${curdir}/${child})
|
|
# list(APPEND dirlist ${child})
|
|
# endif()
|
|
# endforeach()
|
|
# set(${result} ${dirlist} PARENT_SCOPE)
|
|
# endfunction()
|
|
#
|
|
# LISTSUBDIRS(subdirs ${CMAKE_CURRENT_SOURCE_DIR}/plugins/)
|
|
# foreach(subdir ${SUBDIRS})
|
|
# add_subdirectory(${subdir})
|
|
# endforeach()
|
|
if(NOT DEFINED NO_CONNECTION OR NOT NO_CONNECTION)
|
|
add_subdirectory(clad)
|
|
endif()
|
|
endif(CLING_BUILD_PLUGINS)
|