Hi Paul, <br><br>Hi Paul, <br><br>On build system that don&#39;t handle multiple configuration (Makefile based), CMAKE_CFG_INTDIR will be &quot;.&quot;<br><div><br>On build system handling muli-configuration (Visual Studio, XCode ..), CMAKE_CFG_
<div>INTDIR should be either Debug, Release .. <br><br>If you build using ctest, make also sure you pass  the command line &quot;-C Release&quot; or &quot;-C Debug&quot; ... <br><br>Could you provide more details ?  CMake Generator ? CMake version .. ?<br>

<br>Hth<br>Jc<br></div></div><br><br><div class="gmail_quote">On Wed, Jun 29, 2011 at 11:28 AM, Paul Baumer <span dir="ltr">&lt;<a href="mailto:paul.baumer2@googlemail.com">paul.baumer2@googlemail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>Hi,<br></div><div><br></div><div>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:</div>


<div><br></div><div>add_custom_target(My_Install_After_Build ALL COMMAND ${CMAKE_COMMAND} -DBUILD_TYPE=${CMAKE_CFG_INTDIR} -P ${CMAKE_BINARY_DIR}/cmake_install.cmake)    </div><div><br></div><div>The problem is CMAKE_CFG_INTDIR is empty!.</div>


<div><br></div><div>Any ideas how to get  
CMAKE_CFG_INTDIR filled or any ideas on a workaround?</div><div><br></div><font color="#888888"><div>Paul </div>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br><br clear="all"><br>-- <br>+1 919 869 8849<br><br>