mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
Disable tests with a shared library.
This commit is contained in:
parent
52d3122e9e
commit
62ec63b039
@ -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()
|
||||
|
@ -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.")
|
||||
|
Loading…
Reference in New Issue
Block a user