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:
@@ -1,4 +1,9 @@
|
|||||||
cmake_minimum_required(VERSION 2.7)
|
cmake_minimum_required(VERSION 2.7)
|
||||||
|
|
||||||
|
if(TARGET ds)
|
||||||
|
return()
|
||||||
|
endif(TARGET ds)
|
||||||
|
|
||||||
project(libds)
|
project(libds)
|
||||||
|
|
||||||
set_property(GLOBAL PROPERTY C_STANDARD 90)
|
set_property(GLOBAL PROPERTY C_STANDARD 90)
|
||||||
|
|||||||
Reference in New Issue
Block a user