Would it make sense to support $<INSTALL_PREFIX> in the install(SCRIPT) and install(CODE) contexts?
I'm thinking about the fact that CMAKE_INSTALL_PREFIX
can be "overridden" by the --prefix
option of the --install
command, which makes it less than ideal for usage if you want that case to be handled when writing install(SCRIPT)
and install(CODE)
commands that want to use the value of the installation directory. Or is there already a way of handling that that I'm missing?
Edited by David Fong