2022-10-07 21:42:12 +00:00
|
|
|
##============================================================================
|
|
|
|
## Copyright (c) Kitware, Inc.
|
|
|
|
## All rights reserved.
|
|
|
|
## See LICENSE.txt for details.
|
|
|
|
##
|
|
|
|
## This software is distributed WITHOUT ANY WARRANTY; without even
|
|
|
|
## the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
## PURPOSE. See the above copyright notice for more information.
|
|
|
|
##============================================================================
|
|
|
|
|
|
|
|
include(${VTKm_SOURCE_DIR}/CMake/testing/VTKmPerformanceTestLib.cmake)
|
|
|
|
|
2023-01-24 11:19:32 +00:00
|
|
|
REQUIRE_FLAG("VTKm_SOURCE_DIR")
|
2022-10-07 21:42:12 +00:00
|
|
|
REQUIRE_FLAG_MUTABLE("VTKm_PERF_REPO")
|
|
|
|
REQUIRE_FLAG_MUTABLE("VTKm_PERF_REMOTE_URL")
|
|
|
|
|
2023-01-24 11:19:32 +00:00
|
|
|
set(upstream_url "https://gitlab.kitware.com/vtk/vtk-m.git")
|
|
|
|
|
2022-10-07 21:42:12 +00:00
|
|
|
file(REMOVE_RECURSE vtk-m-benchmark-records)
|
|
|
|
execute(COMMAND /usr/bin/git clone -b records ${VTKm_PERF_REMOTE_URL} ${VTKm_PERF_REPO})
|
2023-01-24 11:19:32 +00:00
|
|
|
|
|
|
|
# Fetch VTK-m main git repo objects, this is needed to ensure that when running the CI
|
|
|
|
# from a fork project of VTK-m it will have access to the latest git commits in
|
|
|
|
# the upstream vtk-m git repo.
|
|
|
|
execute(COMMAND /usr/bin/git -C ${VTKm_SOURCE_DIR} remote add upstream ${upstream_url})
|
|
|
|
execute(COMMAND /usr/bin/git -C ${VTKm_SOURCE_DIR} fetch upstream)
|