[CMake] BUG: truncated directory names

Olivier Byrde byrde at id.ethz.ch
Thu Jan 7 06:44:10 EST 2010


Dear CMake developers,

I am building cmake 2.8.0 on Linux (CentOS 5.4) using the options:

	./bootstrap --prefix=/cluster/apps/cmake/2.8.0 --datadir=share --docdir=doc --mandir=man

Everything goes fine, except that when I execute "make install" the name of some installation directories is truncated, i.e. "hare" instead of "share", "oc" instead of "doc", "an" instead of "man":

[...]
-- Installing: /cluster/apps/cmake/2.8.0/share/Templates/CPackConfig.cmake.in
-- Installing: /cluster/apps/cmake/2.8.0/doc/cmsys/Copyright.txt
-- Installing: /cluster/apps/cmake/2.8.0/doc/cmzlib/Copyright.txt
-- Installing: /cluster/apps/cmake/2.8.0/doc/cmcurl/COPYING
-- Installing: /cluster/apps/cmake/2.8.0/doc/cmtar/COPYRIGHT
-- Installing: /cluster/apps/cmake/2.8.0/doc/cmcompress/Copyright.txt
-- Installing: /cluster/apps/cmake/2.8.0/doc/cmexpat/COPYING
-- Installing: /cluster/apps/cmake/2.8.0/hare/include/cmCPluginAPI.h
-- Installing: /cluster/apps/cmake/2.8.0/bin/ccmake
-- Installing: /cluster/apps/cmake/2.8.0/bin/cmake
-- Installing: /cluster/apps/cmake/2.8.0/bin/cpack
-- Installing: /cluster/apps/cmake/2.8.0/bin/ctest
-- Installing: /cluster/apps/cmake/2.8.0/an/man1/ctest.1
-- Installing: /cluster/apps/cmake/2.8.0/oc/ctest.txt
-- Installing: /cluster/apps/cmake/2.8.0/oc/ctest.html
[...]

As you can see in the excerpt above, this is not systematic; some files (e.g. Copyright.txt) are installed in the right directories.

A simple workaround is to add a "/" before the directory names:

	./bootstrap --prefix=/cluster/apps/cmake/2.8.0 --datadir=/share --docdir=/doc --mandir=/man

Although this is not consistent with the documentation ("bootstrap --help"):

	--docdir=DIR            install documentation files in PREFIX/DIR


Best regards,
Olivier


More information about the CMake mailing list