Fix compilation on FreeBSD target with Qt
This commit is contained in:
@@ -24,11 +24,10 @@ endif()
|
||||
if(QT)
|
||||
if(UNIX AND NOT APPLE)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(GLIB_PKG glib-2.0)
|
||||
pkg_check_modules(GLIB_PKG IMPORTED_TARGET glib-2.0)
|
||||
if (GLIB_PKG_FOUND)
|
||||
include_directories(${GLIB_PKG_INCLUDE_DIRS})
|
||||
target_link_libraries(slirp glib-2.0)
|
||||
target_compile_definitions(slirp PRIVATE TINYGLIB_USE_GLIB)
|
||||
target_link_libraries(slirp PkgConfig::GLIB_PKG)
|
||||
else()
|
||||
message(ERROR "GLib development headers are required when compiling with Qt on Unix")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user