From d808f98fd3de15bf23e1a1b3fe8594e48e630f2f Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 18 Mar 2017 17:36:13 -0700 Subject: [PATCH] Add code to return early in CMakeLists to prevent being included again. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f5bd0d9..9ba01f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,9 @@ cmake_minimum_required(VERSION 2.7) + +if(TARGET lex) + return() +endif(TARGET lex) + project(liblex) add_library(lex STATIC src/pattern.c src/pairmap.c src/eval.c)