From 09d6b5adcb9d529be6c9e1eeb203d0d7ec0c5557 Mon Sep 17 00:00:00 2001 From: umyangyu Date: Sat, 18 Jan 2025 20:53:28 -0500 Subject: [PATCH] resolve gtest --- CMakeLists.txt | 3 --- deps/CMakeLists.txt | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e2add62..9ed4db7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,9 +41,6 @@ message(STATUS "${PROJECT_NAME} version : ${PROJECT_VERSION}") message(STATUS "${PROJECT_NAME} Git hash: ${PROJECT_GIT_HASH}") # Assert that install directory is provided and is absolute path. -if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT OR (NOT IS_ABSOLUTE ${CMAKE_INSTALL_PREFIX})) - message(FATAL_ERROR "No install prefix given (or invalid)") -endif() if(NOT IS_SUBPROJECT) message(STATUS "-------- CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX} --------") endif() diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index 6db2571..f96c899 100644 --- a/deps/CMakeLists.txt +++ b/deps/CMakeLists.txt @@ -48,12 +48,14 @@ else() endif() # -- GTest -- +if(NOT TARGET gtest) external_dependency(GTest GIT_REPO https://github.com/google/googletest GIT_TAG main BUILD_ALWAYS EXCLUDE_FROM_ALL ) +endif() # -- nda -- set(PythonSupport OFF)