mirror of https://github.com/fltk/fltk
Restore IMPORTED_TARGET in pkg_check_modules command for libdecor
This commit is contained in:
parent
e6957fc2f5
commit
15d9a350bf
|
@ -333,7 +333,7 @@ if(UNIX)
|
|||
unset(FLTK_USE_PANGO CACHE)
|
||||
set(FLTK_USE_PANGO TRUE CACHE BOOL "use lib Pango")
|
||||
if(FLTK_USE_SYSTEM_LIBDECOR)
|
||||
pkg_check_modules(SYSTEM_LIBDECOR libdecor-0>=0.2.0 QUIET)
|
||||
pkg_check_modules(SYSTEM_LIBDECOR IMPORTED_TARGET libdecor-0>=0.2.0 QUIET)
|
||||
if(NOT SYSTEM_LIBDECOR_FOUND)
|
||||
message(STATUS "Warning: system libdecor doesn't satisfy version ≥ 0.2.0,")
|
||||
message(STATUS " using bundled libdecor library instead.")
|
||||
|
|
|
@ -756,7 +756,7 @@ if(UNIX AND FLTK_BACKEND_WAYLAND)
|
|||
list(APPEND OPTIONAL_LIBS PkgConfig::WLD_EGL PkgConfig::PKG_EGL)
|
||||
endif(FLTK_USE_GL)
|
||||
if(USE_SYSTEM_LIBDECOR)
|
||||
list(APPEND OPTIONAL_LIBS ${SYSTEM_LIBDECOR_LDFLAGS})
|
||||
list(APPEND OPTIONAL_LIBS PkgConfig::SYSTEM_LIBDECOR)
|
||||
elseif(GTK_FOUND AND FLTK_USE_LIBDECOR_GTK)
|
||||
list(APPEND OPTIONAL_LIBS PkgConfig::GTK)
|
||||
endif(USE_SYSTEM_LIBDECOR)
|
||||
|
|
Loading…
Reference in New Issue