[CMake] Looking for a way to do 'make install' to a destination

Eric Noulard eric.noulard at gmail.com
Fri Apr 23 09:27:44 EDT 2010


2010/4/19 Michael Wild <themiwi at gmail.com>:
>
> On 19. Apr, 2010, at 16:22 , Magnus Therning wrote:
>
>> On Mon, Apr 19, 2010 at 11:36, Remy Chibois <rchibois at gmail.com> wrote:
>>>
>>> On Apr 19, 2010, at 12:16 PM, Magnus Therning wrote:
>>>
>>>> It's some times useful to do an install rooted not at '/' but at some
>>>> arbitrary location.  Is there some way of doing this with the GNU
>>>> makefiles generated by cmake?
>>>>
>>>> Something like auto*'s 'make install DESTDIR=/where/I/want/it'?
>>>
>>> Once a project has been configured, "cmake_install.cmake" contains support for it.
>>>
>>> I use the following command line to use it:
>>>
>>> make -f Makefile DESTDIR=/foo/bar/whatever install
>>
>> Thanks, that's what I was looking for.
>>
>> Are there other "make-time variables" (as opposed to "configure-time
>> variables") that are worth knowing about?  Is there a reference for
>> them anywhere?
>>
>> /M
>
> make VERBOSE=1
>
> turns on verbose output for "Unix Makefiles" based generators. That's the only ones I know of...

COLOR may be used to forcibly turn off "colorized output"

see the difference between

make COLOR=NO
and
make COLOR=YES

I think cmake (which is doing the colorized output) detect if the
terminal is able to
display colorized output.


-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list