CMake/Tests/CTestTestBadGenerator/CMakeLists.txt
Brad King 5411128645 ctest_build: Do not crash on bad generator name
If creation of the global generator fails, return early with an error
message instead of trying to use the generator and crashing.

Add a CTestTestBadGenerator test to cover this case.

Reported-by: Mathieu Malaterre <malat@debian.org>
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747306
2014-05-07 11:02:16 -04:00

4 lines
82 B
CMake

cmake_minimum_required(VERSION 3.0)
project(CTestTestDepends NONE)
include(CTest)