Skip to content

Commit

Permalink
Paramterize git repository (#12)
Browse files Browse the repository at this point in the history
Co-authored-by: kyle <[email protected]>
  • Loading branch information
nv-kmcgill53 and kyle authored Mar 6, 2024
1 parent 552a43a commit 00f4460
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Must include options required for this project as well as any
# projects included in this one by FetchContent.
#
set(TRITON_REPO_ORGANIZATION "https://github.com/triton-inference-server" CACHE STRING "Git repository to pull from")
set(TRITON_COMMON_REPO_TAG "main" CACHE STRING "Tag for triton-inference-server/common repo")
set(TRITON_CORE_REPO_TAG "main" CACHE STRING "Tag for triton-inference-server/core repo")
option(TRITON_ENABLE_METRICS "Include metrics support in cache" ON)
Expand All @@ -53,13 +54,13 @@ include(FetchContent)

FetchContent_Declare(
repo-common
GIT_REPOSITORY https://github.com/triton-inference-server/common.git
GIT_REPOSITORY ${TRITON_REPO_ORGANIZATION}/common.git
GIT_TAG ${TRITON_COMMON_REPO_TAG}
GIT_SHALLOW ON
)
FetchContent_Declare(
repo-core
GIT_REPOSITORY https://github.com/triton-inference-server/core.git
GIT_REPOSITORY ${TRITON_REPO_ORGANIZATION}/core.git
GIT_TAG ${TRITON_CORE_REPO_TAG}
GIT_SHALLOW ON
)
Expand Down

0 comments on commit 00f4460

Please sign in to comment.