Add code to return early in CMakeLists to prevent being included again.

This commit is contained in:
Danila Fedorin 2017-03-18 17:36:13 -07:00
parent 2f65eda7bd
commit d808f98fd3
1 changed files with 5 additions and 0 deletions

View File

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