From 64502ff2e6e62e8f4ea4f44df1762f164d01fa17 Mon Sep 17 00:00:00 2001 From: RedSkittleFox Date: Mon, 2 Jan 2023 21:17:48 +0100 Subject: [PATCH] Allow manual EABase installation Only require EABase to be recursively (git submodule) cloned if EABase target isn't already present. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 36724ae..924982e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,9 @@ add_library(EAThread ${EATHREAD_SOURCES}) if(EATHREAD_BUILD_TESTS) add_subdirectory(test) else() - add_subdirectory(test/packages/EABase) + if (NOT TARGET EABase) + add_subdirectory(test/packages/EABase) + endif() endif() #-------------------------------------------------------------------------------------------