[CMake] setting default pathnames for CMake

Bill Hoffman bill.hoffman at kitware.com
Wed Feb 25 22:29:10 EST 2009

scott mc wrote:
> I've compiled CMake for Haiku but it's insisting on putting some
> things into /usr/local which Haiku does not have and does not even
> allow.  Haiku uses /boot/common instead, so for most ports I've done
> with autotools we simply use ./configure --prefix=/boot/common, how is
> this done in CMake?
> -scottmc

cmake -DCMAKE_INSTALL_PREFIX=/boot/common
should work.

If you are building CMake itself, you can pass --prefix=/boot/common to 
the bootstrap script.


More information about the CMake mailing list