[CMake] set CMAKE_INSTALL_PREFIX in CMakeLists
Alexander Neundorf
a.neundorf-work at gmx.net
Tue Nov 23 15:28:01 EST 2010
On Tuesday 23 November 2010, tomasoni at sbc.su.se wrote:
> Dear Cmake users,
>
> 1) I am trying to set CMAKE_INSTALL_PREFIX in the CMakeLists file with
> SET(CMAKE_INSTALL_PREFIX, "my/path")
> but the variable remain unset; everything works fine if the variable is
> set on the command line when invoking cmake
> (-DCMAKE_INSTALL_PREFIX=my/path).
>
> 2) I am also looking for a way to avoid having to invoke cmake -G"Eclipse
> CDT4 - Unix Makefiles" option. Can I set it in the CMakeLists?
If you use cmake-gui (instead of cmake, which may be a good idea if the users
don't like typing that much), they are asked to select this from a combobox,
and on later runs their previous choice is the default selection there.
Alex
More information about the CMake
mailing list