--- gwenhywfar-config.cmake.in	2016-10-20 23:45:28.000000000 +0200
+++ gwenhywfar-config.cmake.in.new	2016-10-21 01:33:15.000000000 +0200
@@ -23,7 +23,11 @@
 set_and_check(exec_prefix "@exec_prefix@")
 set_and_check(includedir "@includedir@")
 set_and_check(GWENHYWFAR_INCLUDE_DIRS "@gwenhywfar_headerdir@")
-set_and_check(GWENHYWFAR_LIBRARIES "@libdir@/libgwenhywfar.so.@GWENHYWFAR_SO_EFFECTIVE@")
+if(APPLE)
+  set_and_check(GWENHYWFAR_LIBRARIES "@libdir@/libgwenhywfar.@GWENHYWFAR_SO_EFFECTIVE@.dylib")
+else()
+  set_and_check(GWENHYWFAR_LIBRARIES "@libdir@/libgwenhywfar.so.@GWENHYWFAR_SO_EFFECTIVE@")
+endif(APPLE)
 set(GWENHYWFAR_FOUND TRUE)
 
 # find components
