--- CMakeLists.txt.orig 2020-06-14 10:22:49 UTC +++ CMakeLists.txt @@ -65,6 +65,7 @@ include(TranslateDesktop) include(DefineCMakeDefaults) include(DefineCompilerFlags) include(DefineInstallationPaths) +include(FindPkgConfig) include(CPackConfig.cmake) include(ConfigureChecks.cmake) @@ -167,10 +168,13 @@ find_package(Qt5WebEngineWidgets REQUIRED) find_package(Qt5Qml REQUIRED) find_package(Qt5Help REQUIRED) find_package(GDAL REQUIRED) -find_package(PROJ4 REQUIRED) +find_package(PROJ4) +if (NOT PROJ4_FOUND) + pkg_search_module(PROJ4 REQUIRED proj) +endif() find_package(JPEG REQUIRED) find_package(ROUTINO REQUIRED) -find_package(QuaZip5 REQUIRED) +find_package(QuaZip-Qt5 REQUIRED) find_package(ALGLIB ) # optional as we can use our local version