[CMake] Empty CMAKE_CFG_INTDIR

Paul Baumer paul.baumer2 at googlemail.com
Wed Jun 29 11:28:52 EDT 2011


Hi,

I have a custom target which basically calls the cmake install script. The
install script can install both debug and release configs so I define the
custom command with the -DBUILDTYPE=${CMAKE_CFG_INTDIR}, as follows:

add_custom_target(My_Install_After_Build ALL COMMAND ${CMAKE_COMMAND}
-DBUILD_TYPE=${CMAKE_CFG_INTDIR} -P ${CMAKE_BINARY_DIR}/cmake_install.cmake)


The problem is CMAKE_CFG_INTDIR is empty!.

Any ideas how to get   CMAKE_CFG_INTDIR filled or any ideas on a workaround?

Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110629/517835b6/attachment.htm>


More information about the CMake mailing list