mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 04:54:19 -04:00
Use CMake's CTest which includes BUILD_TESTING option
BUILD_TESTING is default enabled, which is a good default anyway. Move the CppUnit check to the root CMakeLists.txt, simpler and clearer. BUILD_TESTS is obsolete. The need for BUILD_SHARED_LIBS=OFF for testing is not clear, it works on Linux. But I kept it in the instructions for now. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
committed by
Urs Fleisch
parent
340ec9932a
commit
9e0a7f7adb
@ -187,16 +187,6 @@ if(NOT ZLIB_SOURCE)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Determine whether CppUnit is installed.
|
||||
|
||||
if(BUILD_TESTS AND NOT BUILD_SHARED_LIBS)
|
||||
find_package(CppUnit)
|
||||
if(NOT CppUnit_FOUND)
|
||||
message(STATUS "CppUnit not found, disabling tests.")
|
||||
set(BUILD_TESTS OFF)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Detect WinRT mode
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
set(PLATFORM WINRT 1)
|
||||
|
Reference in New Issue
Block a user