[cmake-developers] BUG: Pass --build-config option to ctest for multi-config ExternalProjects

Brad King brad.king at kitware.com
Tue Jan 19 16:18:09 EST 2016


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,
-Brad


More information about the cmake-developers mailing list