diff --git a/CMakeLists.txt b/CMakeLists.txt index 8618152..c2cd5d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,7 +82,10 @@ find_package(Boost 1.54 COMPONENTS REQUIRED filesystem serialization) find_package(ASPELL REQUIRED) include(FindPkgConfig) pkg_check_modules(GTKMM gtkmm-3.0 REQUIRED) -pkg_check_modules(GTKSVMM gtksourceviewmm-3.0 REQUIRED) +pkg_check_modules(GTKSVMM gtksourceviewmm-3.0) +if(NOT GTKSVMM_FOUND) + pkg_check_modules(GTKSVMM gtksourceviewmm-4.0 REQUIRED) +endif() pkg_check_modules(LIBGIT2 libgit2 REQUIRED) include(FindPackageHandleStandardArgs)