Fix taglib in makefile

This commit is contained in:
Jonas Kvinge
2018-05-10 17:08:55 +02:00
parent 28b670c2dc
commit bcc60797c6
2 changed files with 10 additions and 10 deletions

View File

@@ -123,7 +123,7 @@ if (TAGLIB_VERSION VERSION_GREATER 1.11.1 OR WIN32)
else()
option(USE_SYSTEM_TAGLIB "Use system taglib" OFF)
endif()
if (USE_SYSTEM_TAGLIB)
if (TAGLIB_FOUND AND USE_SYSTEM_TAGLIB)
message(STATUS "Using system taglib library")
set(CMAKE_REQUIRED_INCLUDES "${TAGLIB_INCLUDE_DIRS}")
set(CMAKE_REQUIRED_LIBRARIES "${TAGLIB_LIBRARIES}")