<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Feb 7, 2014, at 10:14 AM, Steve Wilson <<a href="mailto:stevew@wolfram.com">stevew@wolfram.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br>On Feb 6, 2014, at 10:12 PM, Ben Boeckel <<a href="mailto:ben.boeckel@kitware.com">ben.boeckel@kitware.com</a>> wrote:<br><br><blockquote type="cite">On Thu, Feb 06, 2014 at 17:30:11 -0700, Steve Wilson wrote:<br><blockquote type="cite">I have my topic branch with the add_custom_command changes to include<br>the CONFIG keyword working.    The CMake binary produced from the<br>build will correctly generated build systems that have custom commands<br>with the CONFIG keyword.   I’m having trouble writing tests for the<br>changes though.   When I run add_custom_command with the CONFIG<br>keyword in the test suite the CONFIG keyword does not work.<br><br>I need a little guidance with the test suite.   I’m not super familiar<br>with CTest so I’m not sure where to look next to find the problem.<br>So my question:  Why would add_custom_command behave differently in<br>the tests than in regular build system generation?<br></blockquote></blockquote></div></blockquote></div><br><div>I have been able to determine that the code isn’t working because it seems that when running from ctest, cmake seems to be running in a configuration-less mode. Ie CMAKE_BUILD_TYPE/CMAKE_CONFIGURATION_TYPE are not set regardless of the -C option passed to ctest.    I would have thought that the build configuration of the test would match the configuration set with ‘ctest -C .'</div></body></html>