Skip to content

Commit

Permalink
glib fix for Windows (#154)
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina authored Mar 12, 2021
1 parent a8a1f35 commit 01039be
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions cmake/FindGTS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,27 @@ else()

# 2.1 Need glib library
find_library(GLIB_LIBRARY glib-2.0)
if (NOT GLIB_LIBRARY)
if(NOT GTS_FIND_QUIETLY)
message(STATUS "Looking for glib library - not found")
endif()
else()
if(NOT GTS_FIND_QUIETLY)
message(STATUS "Looking for glib library - found")
endif()
endif()
find_path(GLIB_INCLUDE_DIR
NAMES glib.h
PATH_SUFFIXES glib-2.0)
if (GLIB_INCLUDE_DIR)
list(APPEND GTS_INCLUDE_DIRS "${GLIB_INCLUDE_DIR}")
endif()
find_path(GLIBCONFIG_INCLUDE_DIR
NAMES glibconfig.h
PATH_SUFFIXES lib/glib-2.0/include)
if (GLIBCONFIG_INCLUDE_DIR)
list(APPEND GTS_INCLUDE_DIRS "${GLIBCONFIG_INCLUDE_DIR}")
endif()
list(APPEND GTS_LIBRARIES "${GLIB_LIBRARY}")

if (GTS_FOUND)
Expand Down

0 comments on commit 01039be

Please sign in to comment.