]> granicus.if.org Git - taglib/commitdiff
Disable tests with a shared library.
authorFestus Hagen <festushagen2002@yahoo.com>
Thu, 3 Dec 2015 19:36:42 +0000 (14:36 -0500)
committerFestus Hagen <festushagen2002@yahoo.com>
Thu, 3 Dec 2015 20:04:37 +0000 (15:04 -0500)
CMakeLists.txt
ConfigureChecks.cmake

index b01022ceb3d9f4b84ff06c63bbd5d33a8fbfe53e..0be18e27c677415987c8f1cd9921da01b92e2944 100644 (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()
index 3fa01bb1bd905ec6e28bafb85aebc26ffb941579..d0ad1eaa9e1509ab37530283bf53a015ca532f78 100644 (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.")