[CMake] Bugs in cmake-2.4.6, please solve for 2.4.7

Hendrik Sattler post at hendrik-sattler.de
Mon Jul 9 15:22:13 EDT 2007


Am Montag 09 Juli 2007 14:59 schrieb Hendrik Sattler:
> I am currently writing CMakeLists.txt files for an autotools project.
> I found several bugs while doing that and I want to share them with you:

The first two issues are already solved in CVS.

> 3. install( TARGET foo ..... OPTIONAL ) always builds foo on "make install"
> although foo is marked as EXCLUDE_FROM_ALL and OPTIONAL should not care if
> it wasn't already built. Work-around for executables is to use
> install( PROGRAMS ${foo_EXECUTABLE} ..... OPTIONAL ) instead but that
> doesn't work for libraries (hint: rpath)

This got even stranger by now, introducing yet another bug:
  running only "make install" without a prior "make" fails to build a static 
library target dependency.

> 4. I copied FindPkgConfig.cmake to use it with 2.4.6 but it misses one
> small feature: a variable with the path (relative to CMAKE_INSTALL_PATH)
> where to install pkgconfig files to. This may have uncommon places although
> it's usually ${prefix}/share/pkgconfig.

Still there.

> 5. There is absolutely no information about the component stuff. How can I
> use it or can only cpack do that?

Still there.

HS


More information about the CMake mailing list