Return early in CMakeLists.txt to prevent re-adding dependency.
This commit is contained in:
parent
d081380558
commit
1b7dd3056d
|
@ -1,4 +1,9 @@
|
|||
cmake_minimum_required(VERSION 2.7)
|
||||
|
||||
if(TARGET regex)
|
||||
return()
|
||||
endif(TARGET regex)
|
||||
|
||||
project(libregex)
|
||||
|
||||
add_library(regex STATIC src/libregex.c)
|
||||
|
|
Loading…
Reference in New Issue
Block a user