Skip to content

Commit

Permalink
ci debug18
Browse files Browse the repository at this point in the history
  • Loading branch information
CI committed Nov 10, 2023
1 parent bc0c830 commit 1ba7c36
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,21 @@ endif()

if(EXISTS "${CMAKE_BINARY_DIR}/Criterion/subprojects/libgit2/src/libgit2.a")
list(APPEND CRITERION_LIBRARIES "${CMAKE_BINARY_DIR}/Criterion/subprojects/libgit2/src/libgit2.a")
else()
# Execute the find program to locate libgit2.a
execute_process(
COMMAND find "${CMAKE_BINARY_DIR}/Criterion" -name libgit2.a
OUTPUT_VARIABLE FOUND_LIBGIT2
OUTPUT_STRIP_TRAILING_WHITESPACE
)

# If found, append to CRITERION_LIBRARIES
if(FOUND_LIBGIT2)
message(STATUS "Found libgit2.a at: ${FOUND_LIBGIT2}")
list(APPEND CRITERION_LIBRARIES "${FOUND_LIBGIT2}")
else()
message(WARNING "libgit2.a not found in Criterion subprojects.")
endif()
endif()


Expand Down

0 comments on commit 1ba7c36

Please sign in to comment.