[CMake] Re: Howto create an empty directory during 'make install'?

2006-11-25 Thread Enrico Scholz
Alan W. Irwin [EMAIL PROTECTED] writes: how can I create an empty directory during 'make install'? With ordinary make I would write: | install-data-local: | mkdir -p ${DESTDIR}${mydir} How can I do this with cmake? ... I suggest you drop all mention of DESTDIR within cmake or trying

Re: [CMake] Re: Howto create an empty directory during 'make install'?

2006-11-25 Thread Alan W. Irwin
On 2006-11-25 18:47+0100 Enrico Scholz wrote: Alan W. Irwin [EMAIL PROTECTED] writes: how can I create an empty directory during 'make install'? With ordinary make I would write: | install-data-local: | mkdir -p ${DESTDIR}${mydir} How can I do this with cmake? ... I suggest you drop

[CMake] Re: Howto create an empty directory during 'make install'?

2006-11-25 Thread Enrico Scholz
Alan W. Irwin [EMAIL PROTECTED] writes: how can I create an empty directory during 'make install'? ... Instead, I suggest you temporarily forget about DESTDIR functionality and instead concentrate on the simpler problem of configuring cmake so that the ordinary make install works properly

Re: [CMake] Re: Howto create an empty directory during 'make install'?

2006-11-25 Thread Alan W. Irwin
Enrico said: | INSTALL(CODE EXECUTE_PROCESS(COMMAND mkdir -p /var/lib/foo)) and 'make install' works perfectly. But 'make install DESTDIR=/var/tmp/foo-root' still fails with | mkdir: cannot create directory /var/lib/foo': Permission denied Hi Enrico: I think the above will always create

Re: [CMake] Re: Howto create an empty directory during 'make install'?

2006-11-25 Thread Thomas Arcila
Hi, DESTDIR at install time is not available as a CMake variable but as an environment variable : you should access it using $ENV{DESTDIR} Here is a line from FlowVR project (to be release with a complete CMake build system in about a week): INSTALL(CODE EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND}