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

Enrico Scholz enrico.scholz at informatik.tu-chemnitz.de
Sat Nov 25 06:39:03 EST 2006


Hello,

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?

Ditto, how can I create symlinks like

| ${DESTDIR}${bindir}/foo -> foo-1


I tried things like

| INSTALL(CODE "EXECUTE_PROCESS(COMMAND mkdir -p ${DESTDIR}${mydir})")

but '${DESTDIR}' was not expanded by 'make install DESTDIR=/tmp/foo' and
cmake tried to make the directory in the top filesystem.



Enrico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 480 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20061125/b25404d9/attachment.pgp


More information about the CMake mailing list