mirror of
				https://github.com/taglib/taglib.git
				synced 2025-10-31 15:55:17 -04:00 
			
		
		
		
	Merge pull request #694 from FestusHagen/fh1.m_NoSharedLibTests
Disable tests with a shared library.
This commit is contained in:
		| @ -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.") | ||||
|  | ||||
		Reference in New Issue
	
	Block a user