PROJ.4: system library not detected at default location
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
System libary PROJ.4 isn't detected at the usual FHS locations.
When VTK_USE_SYSTEM_LIBRARIES is enabled CMake by default fails with
[...] -- Found TIFF: /usr/lib64/libtiff.so (found version "4.0.6") CMake Error at CMake/vtkModuleMacros.cmake:864 (message): VTK_USE_SYSTEM_LIBPROJ4 is ON but LIBPROJ4 is not found! Call Stack (most recent call first): ThirdParty/libproj4/CMakeLists.txt:1 (vtk_module_third_party)
-- Configuring incomplete, errors occurred! besides headers and shared libraries of PROJ.4 are at the usual paths. Both shared libraries and headers of various other dependencies like GDAL, GL2PS or netCDF-C++ legacy are detected at the very same paths. Also, when LIBPROJ4_INCLUDE_DIR and LIBPROJ4_LIBRARIES are set to suitable paths compiling against system PROJ.4 works flawlessly.
Seen compiling recent VTK master commits like 981a1e12 on Arch Linux, Debian stretch (testing) and Fedora 24. Some related discussion took place on vtk-developers, see http://public.kitware.com/pipermail/vtk-developers/2016-July/034005.html.