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