Merge pull request #2815 from brice-gros/brice.gros/1.10.0+allow-for-cmake-fetchcontent

Make Poco git repository fetchable using CMake's FetchContent
This commit is contained in:
Günter Obiltschnig
2019-11-25 21:24:16 +01:00
committed by GitHub
22 changed files with 46 additions and 43 deletions

View File

@@ -175,6 +175,7 @@ else()
endif()
# Allow enabling and disabling components
option(ENABLE_FOUNDATION "Enable Foundation, required by all components except CppUnit" ON)
option(ENABLE_ENCODINGS "Enable Encodings" ON)
option(ENABLE_ENCODINGS_COMPILER "Enable Encodings Compiler" OFF)
option(ENABLE_XML "Enable XML" ON)
@@ -307,7 +308,9 @@ if(ENABLE_JWT)
set(ENABLE_JSON ON CACHE BOOL "Enable JSON" FORCE)
endif()
add_subdirectory(Foundation)
if(ENABLE_FOUNDATION)
add_subdirectory(Foundation)
endif()
if(ENABLE_ENCODINGS)
add_subdirectory(Encodings)
list(APPEND Poco_COMPONENTS "Encodings")