Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorWeijia Wang <8018380-wegank@users.noreply.gitlab.com>2022-12-04 10:46:37 +0300
committerAntenore Gatta (tmow) <antenore@simbiosi.org>2022-12-04 10:46:37 +0300
commit4d8767e3699c65846ab945ad6802971eb1e72874 (patch)
tree6482f0661c4503b0e41257062a31871be3b743b4 /cmake
parentb07f58d287d164741d0c61fc035aa3b9d1b5c5ce (diff)
Initial macOS support
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindGIO.cmake10
1 files changed, 6 insertions, 4 deletions
diff --git a/cmake/FindGIO.cmake b/cmake/FindGIO.cmake
index bbf6481e1..17e0a3897 100644
--- a/cmake/FindGIO.cmake
+++ b/cmake/FindGIO.cmake
@@ -48,16 +48,18 @@ if(GIO_LIBRARY AND NOT GIO_FOUND)
find_path(GIO_INCLUDE_DIR "gio/gio.h"
HINTS ${GIO_PKG_INCLUDE_DIRS})
-find_path(GIO-UNIX_INCLUDE_DIR "gio/gdesktopappinfo.h"
- HINTS ${GIO-UNIX_PKG_INCLUDE_DIRS})
-
+ if(NOT APPLE)
+ find_path(GIO-UNIX_INCLUDE_DIR "gio/gdesktopappinfo.h"
+ HINTS ${GIO-UNIX_PKG_INCLUDE_DIRS})
+ list(APPEND GIO_INCLUDE_DIRS ${GIO-UNIX_INCLUDE_DIR})
+ endif()
find_package(GLib)
find_package(GObject)
set(GIO_VERSION "${GLib_VERSION}")
list(APPEND GIO_DEPS_FOUND_VARS "GObject_FOUND")
- list(APPEND GIO_INCLUDE_DIRS ${GIO-UNIX_INCLUDE_DIR} ${GObject_INCLUDE_DIRS})
+ list(APPEND GIO_INCLUDE_DIRS ${GObject_INCLUDE_DIRS})
set_property (TARGET "${GIO}" APPEND PROPERTY INTERFACE_LINK_LIBRARIES "gobject-2.0")
set_property(TARGET ${GIO} PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${GIO_INCLUDE_DIR}")