[CMake] Any Project-postfix variable?

Tyler tyler at cryptio.net
Wed Sep 23 12:10:45 EDT 2009


Sending this back to the list for completeness.

On Wed, Sep 23, 2009 at 08:31:33AM -0600, Dixon, Shane wrote:
> You were right, it did end up being recursive.  Each time I configured, it would keep appending MyProg-${VERSION} to the already existing path.  I got around it by doing this:
> 
> IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
> 	SET(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}-${VERSION}" CACHE STRING "Install path" FORCE)
> ENDIF()

Haha, I *knew* this problem sounded familiar. Did you get this solution
from my post on this topic from last week?

Glad it worked out.

tyler


More information about the CMake mailing list