aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindGDKPixbuf2.cmake
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-04-23 10:01:40 +0200
committerMarvin W <git@larma.de>2017-04-26 21:48:53 +0200
commiteddf17c68274c3e8ecf86a13858243159ffe9714 (patch)
treedb92b3ea3ffd453a16df9e53d0b454d172b8c8f2 /cmake/FindGDKPixbuf2.cmake
parent3eb9aa0fa79ea9fcebb5f702f81c2e54aafdc8cc (diff)
downloaddino-eddf17c68274c3e8ecf86a13858243159ffe9714.tar.gz
dino-eddf17c68274c3e8ecf86a13858243159ffe9714.zip
cmake/signal-protocol: shared lib, mark_as_advanced and others
Diffstat (limited to 'cmake/FindGDKPixbuf2.cmake')
-rw-r--r--cmake/FindGDKPixbuf2.cmake11
1 files changed, 5 insertions, 6 deletions
diff --git a/cmake/FindGDKPixbuf2.cmake b/cmake/FindGDKPixbuf2.cmake
index d100deea..3b7eaf5d 100644
--- a/cmake/FindGDKPixbuf2.cmake
+++ b/cmake/FindGDKPixbuf2.cmake
@@ -8,17 +8,16 @@ find_pkg_config_with_fallback(GDKPixbuf2
)
if(GDKPixbuf2_FOUND AND NOT GDKPixbuf2_VERSION)
- find_path(GDKPixbuf2_INCLUDE_DIR "gdk-pixbuf/gdk-pixbuf.h" HINTS ${GDKPixbuf2_INCLUDE_DIRS})
+ find_file(GDKPixbuf2_FEATURES_HEADER "gdk-pixbuf/gdk-pixbuf-features.h" HINTS ${GDKPixbuf2_INCLUDE_DIRS})
+ mark_as_advanced(GDKPixbuf2_FEATURES_HEADER)
- if(GDKPixbuf2_INCLUDE_DIR)
- file(STRINGS "${GDKPixbuf2_INCLUDE_DIR}/gdk-pixbuf/gdk-pixbuf-features.h" GDKPixbuf2_VERSION REGEX "^#define GDK_PIXBUF_VERSION \\\"[^\\\"]+\\\"")
+ if(GDKPixbuf2_FEATURES_HEADER)
+ file(STRINGS "${GDKPixbuf2_FEATURES_HEADER}" GDKPixbuf2_VERSION REGEX "^#define GDK_PIXBUF_VERSION \\\"[^\\\"]+\\\"")
string(REGEX REPLACE "^#define GDK_PIXBUF_VERSION \\\"([0-9]+)\\.([0-9]+)\\.([0-9]+)\\\"$" "\\1.\\2.\\3" GDKPixbuf2_VERSION "${GDKPixbuf2_VERSION}")
endif()
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GDKPixbuf2
- FOUND_VAR GDKPixbuf2_FOUND
REQUIRED_VARS GDKPixbuf2_LIBRARY
- VERSION_VAR GDKPixbuf2_VERSION
-) \ No newline at end of file
+ VERSION_VAR GDKPixbuf2_VERSION) \ No newline at end of file