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

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to