From 1b7dd3056d14247392cc9cd43d3616ffc8b5f41d Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 18 Mar 2017 17:33:03 -0700 Subject: [PATCH] Return early in CMakeLists.txt to prevent re-adding dependency. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0600328..51af2f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)