enable CppUnit with ENABLE_CPPUNIT

I wasted some time because ENABLE_CPPUNIT seems not to enable anything,
This commit is contained in:
Ubiquite 2016-11-18 17:17:19 +01:00 committed by GitHub
parent c12047b060
commit 3621d49b23

View File

@ -143,7 +143,7 @@ set(Poco_COMPONENTS "")
# Pthreads/threads support
find_package(Threads REQUIRED)
if (ENABLE_TESTS)
if (ENABLE_TESTS OR ENABLE_CPPUNIT)
add_subdirectory(CppUnit)
list(APPEND Poco_COMPONENTS "CppUnit")
endif ()