Browse Source

Merge topic 'FindGTK2-old-sigc++'

2ab118a8 FindGTK2: handle old libsigc++ versions
Brad King 8 years ago
parent
commit
f5d6d27168
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Modules/FindGTK2.cmake

+ 4 - 1
Modules/FindGTK2.cmake

@@ -223,7 +223,10 @@ function(_GTK2_SIGCXX_GET_VERSION _OUT_major _OUT_minor _OUT_micro _sigcxxversio
         set(${_OUT_minor} ${${_OUT_minor}} PARENT_SCOPE)
         set(${_OUT_micro} ${${_OUT_micro}} PARENT_SCOPE)
     else()
-        message(FATAL_ERROR "Include file ${_gtkversion_hdr} does not exist")
+        # The header does not have the version macros; assume it is ``0.0.0``.
+        set(${_OUT_major} 0)
+        set(${_OUT_minor} 0)
+        set(${_OUT_micro} 0)
     endif()
 endfunction()