Disable tests with a shared library.

This commit is contained in:
Festus Hagen 2015-12-03 14:36:42 -05:00
parent 52d3122e9e
commit 62ec63b039
2 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ if(WITH_MP4)
set(TAGLIB_WITH_MP4 TRUE)
endif()
option(TRACE_IN_RELEASE "Output debug messages even in release mode" OFF)
option(TRACE_IN_RELEASE "Output debug messages even in release mode" OFF)
if(TRACE_IN_RELEASE)
set(TRACE_IN_RELEASE TRUE)
endif()
@ -142,7 +142,7 @@ if(BUILD_BINDINGS)
add_subdirectory(bindings)
endif()
if(BUILD_TESTS)
if(BUILD_TESTS AND NOT BUILD_SHARED_LIBS)
enable_testing()
add_subdirectory(tests)
endif()

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.")