On 07.02.11 17:24:26, Holmes, David R. III, Ph.D. [RO RM1-24] wrote:
> # In the CPack section
>
> IF(${CMAKE_INSTALL_PREFIX} MATCHES
> ${CPACK_PACKAGE_INSTALL_DIRECTORY})
>
> ELSE(${CMAKE_INSTALL_PREFIX} MATCHES
> ${CPACK_PACKAGE_INSTALL_DIRECTORY})
>
> STRING(REPLACE ${PROJECT_NAME} ${CPACK_PACKAGE_INSTALL_DIRECTORY}
> dummy ${CMAKE_INSTALL_PREFIX} )
>
> SET(CMAKE_INSTALL_PREFIX ${dummy} CACHE PATH "" FORCE)
>
> ENDIF(${CMAKE_INSTALL_PREFIX} MATCHES
> ${CPACK_PACKAGE_INSTALL_DIRECTORY})
Thats your problem right there. Whenever CMAKE_INSTALL_PREFIX is not the
same as the CPACK_PACKAGE_INSTALL_DIRECTORY its reset to be the same
using FORCE which means whatever was there in the case is overwritten.
Looks like the author does not want anybody to change the install prefix
once its been set.
Andreas
--
Be careful! Is it classified?
_______________________________________________
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