[CMake] Any Project-postfix variable?

Tyler Roscoe tyler at cryptio.net
Tue Sep 22 18:47:44 EDT 2009


On Tue, Sep 22, 2009 at 04:12:05PM -0600, Dixon, Shane wrote:
> SET(CMAKE_INSTALL_PREFIX "C:\Program Files\MyProg-${VERSION}" CACHE STRING "Install path FORCE)

Not exactly what you're looking for but how about something like:

SET(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/MyProg-${VERSION}" CACHE STRING "Install path" FORCE)

There might be a recursion problem with this specific implementation
(.../MyProg-${VERSION}/MyProg-${VERSION}/MyProg-${VERSION}/...) but it's
one idea.

tyler


More information about the CMake mailing list