From f1ead93374174ee912be0cb8193dfac649c320e9 Mon Sep 17 00:00:00 2001
From: armatusmiles <akurotych@gmail.com>
Date: Mon, 27 Aug 2018 22:04:07 +0300
Subject: [PATCH] [*] Fix CMP0002 CMake problem

---
 CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1a662ca..fea4065 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,7 @@
 cmake_minimum_required(VERSION 3.0)
-
+if(TARGET dap_test)
+    return() # The project has already been built.
+endif()
 project(dap_test)
 
 add_library(${PROJECT_NAME} STATIC dap_test.h dap_test.c)
-- 
GitLab