Skip to content

Commit

Permalink
Try using ExternalProject
Browse files Browse the repository at this point in the history
  • Loading branch information
EpsilonPrime committed Feb 21, 2024
1 parent 38b8600 commit 948b0bb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions third_party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ add_subdirectory(fmt)
find_package(GTest QUIET CONFIG)
if(NOT ${GTEST_FOUND})
message(STATUS "Using bundled GoogleTest library.")
add_subdirectory(googletest)
FetchContent_SetPopulated(
include(ExternalProject)
ExternalProject_Add(
GTest
SOURCE_DIR googletest
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/googletest
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/googletest
INSTALL_COMMAND ""
)
endif()

Expand Down

0 comments on commit 948b0bb

Please sign in to comment.