From 2a075869bf2e4a00e98af0f1178d7cd2efcae0cb Mon Sep 17 00:00:00 2001 From: Dmitriy Gerasimov <naeper@demlabs.net> Date: Tue, 4 Jun 2019 14:41:28 +0700 Subject: [PATCH] [*] Submods checks --- CMakeLists.txt | 4 +++- test/CMakeLists.txt | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b9d6f19..b055fda 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,9 @@ cmake_minimum_required(VERSION 3.1) project (dap_udp_server C) if(NOT (${SUBMODULES_NO_BUILD} MATCHES ON)) - add_subdirectory(libdap-server-core) + if ( NOT ( TARGET dap_core_server ) ) + add_subdirectory(libdap-server-core) + endif() enable_testing() add_subdirectory(test) endif() diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ef2ee70..998462e 100755 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -3,7 +3,9 @@ project(udp-server-test) set(CMAKE_C_STANDARD 11) -add_subdirectory(libdap-test) +if ( NOT ( TARGET dap_test ) ) + add_subdirectory(libdap-test) +endif() file(GLOB SRC *.h *.c) -- GitLab