I'm building https://github.com/open-source-parsers/jsoncpp/tree/0.10.7 for an embedded system because that's the recommended version if c++03 support is still needed. My target is based on Ubuntu 12.04.
CMakeLists.txt has include(GNUInstallDirs) so I'm trying to specify the installation directories with
cmake -DCMAKE_INSTALL_LIBDIR=/usr -DCMAKE_INSTALL_PREFIX=lib
I've tried various combinations of these and permutations, but cmake insists on installing the shared library in /usr/lib/x86_64-linux-gnu while I need it to be in /usr/lib.
I've followed the advice here: How to use CMAKE_INSTALL_PREFIX but to no avail.
Oddly the INCLUDEDIR variable does put the include files where I want them.
Is there any way of getting the library where I want it without modifying CMakeLists.txt?