How are you configuring? With a CMake GUI or a command line tool?
If with a gui, set the CMAKE_INSTALL_PREFIX in the gui.
If with a command line tool, pass -DCMAKE_INSTALL_PREFIX:STRING=/blah on the
command line.
To workaround this entirely, invent your own CMake variable that CMake knows
nothing
In my project file I have near the top of the file, the line:
set(CMAKE_INSTALL_PREFIX ${APP_INSTALL_DIR}/MyApp)
Which I thought would force all install destinations to be relative to
that directory. Later in the same CMakeLists.txt file, I have some
install commands:
INSTALL(TARGETS My