A co-worker asked me to install OpenSceneGraph, and said it needed Coin built & installed so he can read (Open)Inventor files.
I want to install the Coin library locally in our Open Source VICAR tree under /usr/local/vicar/external/coin/v4.0.0/x86-linux for OpenScene Graph to link to, so I set $CMAKE_INSTALL_PREFIX to that path and ran cmake ../coin (cmake 3.10.1 on RHEL 7.3).
None of the generated files had the substituted $CMAKE_INSTALL_PREFIX path. When the make finished and I ran make install, it tried to install into /usr/local/include/Inventor, et al. instead of $CMAKE_INSTALL_PREFIX/include/Inventor et al.
Did I do something obviously wrong or am I missing a switch somewhere or does Coin 4.0.0 not process $CMAKE_INSTALL_PREFIX?