This might be helpful:
http://stackoverflow.com/questions/39481958/setting-cmake-install-prefix-from-cmakelists-txt-file/39485990#39485990
Also, FWIW, the generated makefile (if you are using the makefile generator)
supports DESTDIR which will get prepended to the CMAKE_INSTALL_PREFIX path
(whi
I've found experimentally that if the install directory exists, it works
correctly. If it does not exist, the prefix somehow gets changed to
/usr/local. I've not found where that's getting set yet.
Thanks for the recommendation on CACHE.
On Wed, Dec 28, 2016 at 9:46 AM, Kris Thielemans <
kris.f
Hi
My guess is that you have a local variable CMAKE_INSTALL_PREFIX being shadowed
by the global variable. Best to add the CACHE keyword etc in your set
statement, then there’ll be only 1 variable.
Kris
From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Chris Johnson
Sent: 27 De