From 478b78db84141f8286960e681ff39a570c60456d Mon Sep 17 00:00:00 2001 From: armatusmiles <akurotych@gmail.com> Date: Wed, 19 Sep 2018 16:08:04 +0300 Subject: [PATCH] [+] CMake include guard --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c12bc38..0aa7430 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,12 @@ cmake_minimum_required(VERSION 3.0) + +if(TARGET dap_core_server) + return() # The project has already been built. +endif() + project (dap_core_server C) set(CMAKE_C_STANDARD 11) + add_definitions ("-D_GNU_SOURCE") add_subdirectory(libdap) -- GitLab