[CMake] Odd variable substitution problem with 2.4.7 on HP-UX
11.23/PA
Albert Chin
cmake at mlists.thewrittenword.com
Sun Dec 23 01:22:37 EST 2007
$ 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?
--
albert chin (china at thewrittenword.com)
More information about the CMake
mailing list