Bug report #18918

Improve CMake error messages when libraries are missing.

Added by Tobias Watzl over 6 years ago.

Status:Open
Priority:Low
Assignee:-
Category:Build/Install
Affected QGIS version:3.1(master) Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:26750

Description

Hello,

I am just building QGIS from scratch and noticed that while some libraries are included in the cmake files using FIND_LIBRARY, others are not. When those libraries are missing, the only error one gets is something like:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
PROJ_INCLUDE_DIR

I have noticed this is the case for the following libraries:
- spatialite
- spatialindex
- qwt
- qtkeychain
- qscintilla
- proj

I would expect to get something like library xy not found.
This would make it easier to build the project. I thought at first that I misconfigured something until I found out it were the libraries missing.

I hope I could help you with my feedback.

Kind regards

Also available in: Atom PDF