mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Tests: Add case for cmake --build with a failing target
This commit is contained in:
@@ -0,0 +1 @@
|
||||
[^0]
|
||||
@@ -0,0 +1 @@
|
||||
.*
|
||||
@@ -5,3 +5,4 @@ add_custom_command(
|
||||
add_custom_target(CustomTarget ALL DEPENDS output.txt)
|
||||
add_custom_target(CustomTarget2 ALL DEPENDS output.txt)
|
||||
add_custom_target(CustomTarget3 ALL DEPENDS output.txt)
|
||||
add_custom_target(CustomTargetFail COMMAND DoesNotExist)
|
||||
|
||||
@@ -134,6 +134,8 @@ function(run_BuildDir)
|
||||
${CMAKE_COMMAND} --build BuildDir-build --target CustomTarget)
|
||||
run_cmake_command(BuildDir--build-multiple-targets ${CMAKE_COMMAND} -E chdir ..
|
||||
${CMAKE_COMMAND} --build BuildDir-build -t CustomTarget2 --target CustomTarget3)
|
||||
run_cmake_command(BuildDir--build-multiple-targets-fail ${CMAKE_COMMAND} -E chdir ..
|
||||
${CMAKE_COMMAND} --build BuildDir-build -t CustomTargetFail --target CustomTarget3)
|
||||
run_cmake_command(BuildDir--build-multiple-targets-jobs ${CMAKE_COMMAND} -E chdir ..
|
||||
${CMAKE_COMMAND} --build BuildDir-build --target CustomTarget CustomTarget2 -j2 --target CustomTarget3)
|
||||
run_cmake_command(BuildDir--build-multiple-targets-with-clean-first ${CMAKE_COMMAND} -E chdir ..
|
||||
|
||||
Reference in New Issue
Block a user