[cmake-developers] BUG: Pass --build-config option to ctest for multi-config ExternalProjects
Taylor Braun-Jones
taylor at braun-jones.org
Tue Jan 19 16:39:36 EST 2016
On Tue, Jan 19, 2016 at 4:18 PM, Brad King <brad.king at kitware.com> wrote:
> On 01/19/2016 03:54 PM, Taylor Braun-Jones wrote:
>> For ExternalProjects built with a multi-config generator like "Visual
>> Studio 12" with `TEST_BEFORE_INSTALL ON` I need this patch:
>>
>> https://github.com/Kitware/CMake/compare/master...nocnokneo:patch-1
>>
>> Otherwise, the test step gives the error "Test not available without
>> configuration."
>
> Good catch. Please try these changes:
>
> ExternalProject: Simplify `cmake --build` configuration passing
> https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b95be1cf
>
> ExternalProject: Fix TEST_BEFORE_INSTALL for multi-config generators
> https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f565f9fa
Thanks - works!
However, these patches use the deprecated $<CONFIGURATION> generator
expression instead of $<CONFIG>. The rest of ExternalProject.cmake
uses $<CONFIG>.
Taylor
More information about the cmake-developers
mailing list