From 1a7ba8e3939aeec0936e54d2ee2cae314c35afae Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 18 Mar 2017 17:30:51 -0700 Subject: [PATCH] Exit CMakeLists if the library has already been defined. This is to prevent the re-use of this library in multiple projects. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e9ae4be..2ef6728 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,9 @@ cmake_minimum_required(VERSION 2.7) + +if(TARGET ds) + return() +endif(TARGET ds) + project(libds) set_property(GLOBAL PROPERTY C_STANDARD 90)