[CMake] cmake 2.4.2 vs cmake 2.2.3
Vikas Kumar
vikasnkumar at users.sourceforge.net
Mon Jun 19 10:48:22 EDT 2006
Hi
There is a difference in the way these two versions handle the
installation part.
Here is the snippet from the cmake_install.cmake file generated with
cmake-2.4.2.
IF(NOT DEFINED CMAKE_INSTALL_PREFIX)
SET(CMAKE_INSTALL_PREFIX "/home/vikas/installer/")
ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX)
STRING(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
Why is the REGEX part replacing the last '/' character ? It is
automatically generated by Cmake, so how do I prevent cmake from
generating it ?
This results in creation of directories named installerbin,
installerlib instead of installer/bin and installer/lib. The above
code worked fine in cmake-2.2.3
Vikas
More information about the CMake
mailing list