@@ -1643,8 +1643,11 @@ if (vecgeom)
1643
1643
endif ()
1644
1644
endif ()
1645
1645
1646
- #---Check for AdaptiveCpp-------------------------------------------------------------------
1646
+ if (experimental_builtin_adaptivecpp)
1647
+ ROOT_CHECK_CONNECTION_AND_DISABLE_OPTION("experimental_builtin_adaptivecpp" )
1648
+ endif ()
1647
1649
1650
+ #---Check for AdaptiveCpp-------------------------------------------------------------------
1648
1651
if (experimental_adaptivecpp OR experimental_builtin_adaptivecpp)
1649
1652
if (experimental_oneapi)
1650
1653
message (WARNING "Disable OneAPI to load AdaptiveCpp" )
@@ -1656,16 +1659,16 @@ if (experimental_adaptivecpp OR experimental_builtin_adaptivecpp)
1656
1659
find_package (AdaptiveCpp)
1657
1660
1658
1661
if (NOT AdaptiveCpp_FOUND)
1659
- if (fail-on -missing)
1660
- message (FATAL_ERROR "AdaptiveCpp not found. Ensure that the installation of AdaptiveCpp is in the CMAKE_PREFIX_PATH" )
1661
- else ()
1662
- message (STATUS "AdaptiveCpp not found. Ensure that the installation of AdaptiveCpp is in the CMAKE_PREFIX_PATH" )
1663
- if (NO_CONNECTION)
1664
- set (experimental_adaptivecpp OFF CACHE BOOL "Disabled because not found and no internet connection" FORCE)
1665
- else ()
1666
- message (STATUS " Switching ON 'experimental_builtin_adaptivecpp' option" )
1667
- set (experimental_builtin_adaptivecpp ON CACHE BOOL "Enabled because external AdaptiveCpp not found" FORCE)
1662
+ message (STATUS "AdaptiveCpp not found. Ensure that the installation of AdaptiveCpp is in the CMAKE_PREFIX_PATH" )
1663
+ if (NO_CONNECTION)
1664
+ set (experimental_builtin_adaptivecpp OFF CACHE BOOL "Disabled because not found and no internet connection" FORCE)
1665
+ set (sycl OFF CACHE BOOL FORCE)
1666
+ if (fail-on -missing)
1667
+ message (FATAL_ERROR "AdaptiveCpp cannot be built." )
1668
1668
endif ()
1669
+ else ()
1670
+ message (STATUS " Switching ON 'experimental_builtin_adaptivecpp' option" )
1671
+ set (experimental_builtin_adaptivecpp ON CACHE BOOL "Enabled because external AdaptiveCpp not found" FORCE)
1669
1672
endif ()
1670
1673
endif ()
1671
1674
endif ()
0 commit comments