Warning, /acts/Traccc/extern/dpl/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # TRACCC library, part of the ACTS project (R&D line)
0002 #
0003 # (c) 2024-2026 CERN for the benefit of the ACTS project
0004 #
0005 # Mozilla Public License Version 2.0
0006
0007 # CMake include(s).
0008 cmake_minimum_required(VERSION 3.25)
0009 include(FetchContent)
0010
0011 # Tell the user what's happening.
0012 message(STATUS "Building oneDPL as part of the TRACCC project")
0013
0014 # Declare where to get DPL from.
0015 set(TRACCC_DPL_SOURCE
0016 "URL;https://github.com/uxlfoundation/oneDPL/archive/refs/tags/oneDPL-2022.11.0-release.tar.gz;URL_MD5;d42f971a7fb53574e511e207b22151cd;PATCH_COMMAND;patch;-p1;-i;${CMAKE_CURRENT_SOURCE_DIR}/oneDPL-2022.11.0.patch"
0017 CACHE STRING
0018 "Source for DPL, when built as part of this project"
0019 )
0020 mark_as_advanced(TRACCC_DPL_SOURCE)
0021 # Must not use SYSTEM here, as the oneAPI compiler then ignores this version
0022 # of oneDPL.
0023 FetchContent_Declare(DPL ${TRACCC_DPL_SOURCE})
0024
0025 # Set the default oneDPL threading backend.
0026 set(ONEDPL_BACKEND "dpcpp" CACHE STRING "oneDPL threading backend")
0027 set(SYCL_SUPPORT ON)
0028
0029 # Get it into the current directory.
0030 FetchContent_MakeAvailable(DPL)