From: Festus Hagen Date: Thu, 3 Dec 2015 19:36:42 +0000 (-0500) Subject: Disable tests with a shared library. X-Git-Tag: v1.11beta~50^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62ec63b0391d15ae727a90ea14752cbf4c13190a;p=taglib Disable tests with a shared library. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b01022ce..0be18e27 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 3fa01bb1..d0ad1eaa 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -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.")