Fix use system SingleApplication
This commit is contained in:
@@ -187,10 +187,6 @@ if (TAGLIB_FOUND AND USE_SYSTEM_TAGLIB)
|
||||
else()
|
||||
message(WARNING "Using system taglib library. Version 1.11.1 or less has a bug corrupting Ogg files, make sure your systems version has been patched!")
|
||||
endif()
|
||||
set(CMAKE_REQUIRED_INCLUDES "${TAGLIB_INCLUDE_DIRS}")
|
||||
set(CMAKE_REQUIRED_LIBRARIES "${TAGLIB_LIBRARIES}")
|
||||
set(CMAKE_REQUIRED_INCLUDES)
|
||||
set(CMAKE_REQUIRED_LIBRARIES)
|
||||
find_path(HAVE_TAGLIB_DSFFILE_H taglib/dsffile.h)
|
||||
if(HAVE_TAGLIB_DSFFILE_H)
|
||||
set(HAVE_TAGLIB_DSFFILE ON)
|
||||
@@ -206,8 +202,8 @@ else()
|
||||
endif()
|
||||
|
||||
# SingleApplication
|
||||
find_library(SINGLEAPPLICATION singleapplication)
|
||||
find_library(SINGLECOREAPPLICATION singlecoreapplication)
|
||||
pkg_check_modules(SINGLEAPPLICATION singleapplication)
|
||||
pkg_check_modules(SINGLECOREAPPLICATION singlecoreapplication)
|
||||
if (SINGLEAPPLICATION_FOUND AND SINGLECOREAPPLICATION_FOUND)
|
||||
option(USE_SYSTEM_SINGLEAPPLICATION "Use system SingleApplication/SingleCoreApplication libraries" ON)
|
||||
else(SINGLEAPPLICATION_FOUND AND SINGLECOREAPPLICATION_FOUND)
|
||||
|
||||
Reference in New Issue
Block a user