Skip to content

Commit

Permalink
Merge branch 'vbpf:main' into issue728
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan-Jowett authored Oct 22, 2024
2 parents 8dd5ac7 + e6ceb8f commit fa3ab02
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@ project(ebpf_verifier)

include(FetchContent)

option(VERIFIER_ENABLE_TESTS "Build tests" ON)
if (IS_DIRECTORY "${PROJECT_SOURCE_DIR}/.git")
# Install Git pre-commit hook
file(COPY scripts/pre-commit scripts/commit-msg
DESTINATION "${PROJECT_SOURCE_DIR}/.git/hooks")
option(VERIFIER_ENABLE_TESTS "Build tests" ON)
else()
option(VERIFIER_ENABLE_TESTS "Build tests" OFF)
endif ()

message("Building tests: ${VERIFIER_ENABLE_TESTS}")

FetchContent_Declare(GSL
GIT_REPOSITORY "https://github.com/microsoft/GSL"
Expand All @@ -24,11 +33,6 @@ FetchContent_Declare(Catch2
FetchContent_MakeAvailable(Catch2)
endif()

if (IS_DIRECTORY "${PROJECT_SOURCE_DIR}/.git")
# Install Git pre-commit hook
file(COPY scripts/pre-commit scripts/commit-msg
DESTINATION "${PROJECT_SOURCE_DIR}/.git/hooks")
endif ()

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR
"${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
Expand Down

0 comments on commit fa3ab02

Please sign in to comment.