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
1 changed files with 5 additions and 0 deletions

View File

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