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}
Hi Paul,
Hi Paul,
On build system that don't handle multiple configuration (Makefile based),
CMAKE_CFG_INTDIR will be .
On build system handling muli-configuration (Visual Studio, XCode ..),
CMAKE_CFG_
INTDIR should be either Debug, Release ..
If you build using ctest, make also sure you pass
Hi all,
I have found the problem.
I have moved the call to add_custom_target to a line after project(). Now it
works.
Thanks,
Paul.
___
Powered by www.kitware.com
Visit other Kitware open-source projects at