Return early in CMakeLists.txt to prevent re-adding dependency.

This commit is contained in:
Danila Fedorin 2017-03-18 17:33:03 -07:00
parent d081380558
commit 1b7dd3056d

View File

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