Disable tests with a shared library.

This commit is contained in:
Festus Hagen
2015-12-03 15:04:37 -05:00
parent 52d3122e9e
commit 62ec63b039
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ if(NOT ZLIB_SOURCE)
endif()
endif()
if(BUILD_TESTS)
if(BUILD_TESTS AND NOT BUILD_SHARED_LIBS)
find_package(CppUnit)
if(NOT CppUnit_FOUND)
message(STATUS "CppUnit not found, disabling tests.")