[CMake] Odd variable substitution problem with 2.4.7 on HP-UX
11.23/PA
Bill Hoffman
bill.hoffman at kitware.com
Sun Dec 23 09:34:48 EST 2007
Albert Chin wrote:
> $ gtar zxf cmake-2.4.7.tar.gz
> $ cmake-2.4.7
> $ ./bootstrap --verbose --prefix=/tmp/cmake24 && gmake VERBOSE=1
> $ gmake install
>
> $ mkdir c
> $ cd c
> $ echo Hello >Hello.h
> $ cat >CMakeLists.txt <<_EOT_
> SET(LIBDIR "lib/" CACHE
> STRING "installed library subdirectory")
> SET(PLUGINDIR "${LIBDIR}/plugins" CACHE
> STRING "installed application plugin files subdirectory")
>
> INSTALL_FILES(Hello.h
> DESTINATION ${LIBDIR})
> _EOT_
>
> $ /tmp/cmake24/bin/cmake --debug-output --debug-trycompile \
> -DLIBDIR=/tmp/hello/lib -DCMAKE_INSTALL_PREFIX=/tmp/hello
> $ grep PLUGINDIR CMakeCache.txt
> PLUGINDIR:STRING=/plugins
>
> $ rm -rf CMakeFiles CMakeCache.txt cmake_install.cmake
> $ /tmp/cmake24/bin/cmake --debug-output --debug-trycompile \
> -DLIBDIR=/opt/TWWfsw/scribus13/lib \
> -DCMAKE_INSTALL_PREFIX=/opt/TWWfsw/scribus13
> $ grep PLUGINDIR CMakeCache.txt
> PLUGINDIR:STRING=installed library subdirectory/plugins
>
> I then tried the binary on the cmake web site for HP-UX:
> $ rm -rf CMakeFiles CMakeCache.txt cmake_install.cmake
> $ cmake-2.4.7-HP-UX-9000_785/bin/cmake --debug-output \
> --debug-trycompile -DLIBDIR=/tmp/hello/lib \
> -DCMAKE_INSTALL_PREFIX=/tmp/hello
> $ grep PLUGINDIR CMakeCache.txt
> PLUGINDIR:STRING=LIBDIR/plugins
>
> How was the HP-UX binary on the cmake web site compiled? And on what
> version of HP-UX was it compiled?
>
I think that is the same as this issue:
http://www.cmake.org/Bug/view.php?id=5638
It should be fixed on the 2.4 branch in CVS, and will be fixed in 2.4.8.
-Bill
More information about the CMake
mailing list