Added conditional extmatch.{c,h} compilation if PCRE is here or not

This commit is contained in:
Snaipe 2015-07-31 07:44:32 +02:00
parent 86e059b403
commit f8bb64ace7

View file

@ -74,11 +74,16 @@ set(SOURCE_FILES
src/i18n.h
src/ordered-set.c
src/posix-compat.c
src/extmatch.c
src/extmatch.h
src/main.c
)
if (PCRE_FOUND)
set (SOURCE_FILES ${SOURCE_FILES}
src/extmatch.c
src/extmatch.h
)
endif ()
set(INTERFACE_FILES
include/criterion/assert.h
include/criterion/abort.h