[CMake] Any Project-postfix variable?

Dixon, Shane Shane.Dixon at atmel.com
Tue Sep 22 18:12:05 EDT 2009


I'd like to start installing each new version of MyProg into it's own folder with the version number MyProg-0.1.1.  This is easy in CPACK, so my package does this.  I'm having trouble with the install() command.  I could cache the value of CMAKE_INSTALL_PREFIX:

 

SET(CMAKE_INSTALL_PREFIX "C:\Program Files\MyProg-${VERSION}" CACHE STRING "Install path FORCE)

 

But I'm hoping to keep this as future-looking as possible when I might port this to linux.  Setting this in the cache seems like a bad idea and doing a platform check and conditionally setting CMAKE_INSTALL_PREFIX sounds annoying.  Is there any PROJECT_POSTFIX that I could set to "-${VERSION}" or something?

 

--

Shane

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090922/2b97f4fe/attachment.htm>


More information about the CMake mailing list