Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overriding the rego-cpp source location. #4

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,24 @@ cmake_minimum_required(VERSION 3.16)

project(cheriot-policy LANGUAGES CXX)


if (DEFINED ENV{REGOCPP_REPO})
set(REGOCPP_REPO $ENV{REGOCPP_REPO})
else ()
set(REGOCPP_REPO "https://github.com/microsoft/rego-cpp/")
endif ()

if (DEFINED ENV{REGOCPP_TAG})
set(REGOCPP_TAG $ENV{REGOCPP_TAG})
else ()
set(REGOCPP_TAG "cb967637dbf7cee25117203bbdf9c10b62dfb25a")
endif()

include(FetchContent)
FetchContent_Declare(
regocpp
GIT_REPOSITORY https://github.com/microsoft/rego-cpp.git
GIT_TAG cb967637dbf7cee25117203bbdf9c10b62dfb25a
GIT_REPOSITORY ${REGOCPP_REPO}
GIT_TAG ${REGOCPP_TAG}
)
FetchContent_MakeAvailable(regocpp)

Expand Down
Loading