Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
esseivaju committed May 27, 2024
1 parent 4031206 commit 44eeff9
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ option(CELERITAS_BUILD_TESTS "Build Celeritas unit tests" OFF)
# Assertion handling
option(CELERITAS_DEBUG "Enable runtime assertions" OFF)

# Download external libraries
option(CELERITAS_PERFETTO_DOWNLOAD "Fetch perfetto sources" OFF)

# Secondary testing options (only applies to CTest)
if(NOT CELERITAS_DEBUG OR CELERITAS_USE_VecGeom)
set(_default_lock ON)
Expand Down Expand Up @@ -337,20 +334,20 @@ if(CELERITAS_USE_Perfetto)
include(FetchContent)
if(CELERITAS_USE_CUDA OR CELERITAS_USE_HIP)
celeritas_error_incompatible_option(
"Perfetto is not supported with CUDA/HIP build"
CELERITAS_USE_Perfetto
OFF
"Perfetto is not supported with CUDA/HIP build"
CELERITAS_USE_Perfetto
OFF
)
endif()
if (PERFETTO_ROOT AND NOT FETCHCONTENT_SOURCE_DIR_PERFETTO)
set(FETCHCONTENT_SOURCE_DIR_PERFETTO ${PERFETTO_ROOT})
endif()

FetchContent_Declare(
perfetto
#v45 .0
URL https://android.googlesource.com/platform/external/perfetto/+archive/7add4fded398ef47414a556b7b81d212a4482a66.tar.gz
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
perfetto
# v45 .0
URL https://android.googlesource.com/platform/external/perfetto/+archive/7add4fded398ef47414a556b7b81d212a4482a66.tar.gz
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
)

if (NOT FETCHCONTENT_SOURCE_DIR_PERFETTO)
Expand Down

0 comments on commit 44eeff9

Please sign in to comment.