Exit CMakeLists if the library has already been defined.

This is to prevent the re-use of this library in multiple projects.
This commit is contained in:
Danila Fedorin 2017-03-18 17:30:51 -07:00
parent c8d733e410
commit 1a7ba8e393
1 changed files with 5 additions and 0 deletions

View File

@ -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)