From: Jan Engelhardt Date: 2019-12-18 23:10:30.098185171 +0100 Use GME system libraries instead of bundled code. --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) Index: ZMusic-1.1.2/CMakeLists.txt =================================================================== --- ZMusic-1.1.2.orig/CMakeLists.txt +++ ZMusic-1.1.2/CMakeLists.txt @@ -186,7 +186,9 @@ set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "${C set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${DEB_C_FLAGS} -D_DEBUG" ) option(FORCE_INTERNAL_ZLIB "Use internal zlib") -option(FORCE_INTERNAL_GME "Use internal gme" ON) +include(FindPkgConfig) +pkg_check_modules(GME libgme) +option(FORCE_INTERNAL_GME "Use internal gme" OFF) mark_as_advanced( FORCE_INTERNAL_GME ) if( ZLIB_FOUND AND NOT FORCE_INTERNAL_ZLIB ) @@ -202,6 +204,7 @@ endif() if( GME_FOUND AND NOT FORCE_INTERNAL_GME ) + set(GME_INCLUDE_DIR "${GME_INCLUDEDIR}") message( STATUS "Using system gme library, includes found at ${GME_INCLUDE_DIR}" ) else() message( STATUS "Using internal gme library" )