GH-1167: Remove expat CPP sources from globbed C++ source file list.

This commit is contained in:
Matej Kenda 2016-03-02 21:26:49 +01:00 committed by Guenter Obiltschnig
parent 324e04e568
commit db91266c34

View File

@ -1,8 +1,13 @@
set(LIBNAME "XML")
set(POCO_LIBNAME "Poco${LIBNAME}")
# Expat CPP sources to be excluded from globbed SRCS_G
# They are added back on the list if POCO_UNBUNDLED is not set
set(EXPAT_CPP "${CMAKE_CURRENT_SOURCE_DIR}/src/xmlparse.cpp")
# Sources
file(GLOB SRCS_G "src/*.cpp")
list(REMOVE_ITEM SRCS_G ${EXPAT_CPP})
POCO_SOURCES_AUTO( SRCS ${SRCS_G})
# Headers