summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2017-02-20 15:21:06 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2017-02-20 16:58:57 (GMT)
commit2ab118a8591d8b27ae89de8f3c65b5797fd01dc2 (patch)
tree43b8839f98043939779621d01a8e41b982c6a0f2 /Modules
parent2c354f4ee44e9690ca6ed6c7266283bda1070ca4 (diff)
downloadCMake-2ab118a8591d8b27ae89de8f3c65b5797fd01dc2.zip
CMake-2ab118a8591d8b27ae89de8f3c65b5797fd01dc2.tar.gz
CMake-2ab118a8591d8b27ae89de8f3c65b5797fd01dc2.tar.bz2
FindGTK2: handle old libsigc++ versions
Old versions of `libsigc++` do not have the version macros inside of its `sigc++config.h` header. Assume nothing about such headers and report version "zero". Fixes: #16654
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindGTK2.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake
index 6747be5..20d7924 100644
--- a/Modules/FindGTK2.cmake
+++ b/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()