Add_StepDependencies_no_target.cmake 461 B

12345678910
  1. cmake_minimum_required(VERSION ${CMAKE_VERSION})
  2. include(ExternalProject)
  3. ExternalProject_Add(BAR URL https://cmake.org/bar.tar.gz)
  4. ExternalProject_Add(FOO URL https://cmake.org/foo.tar.gz STEP_TARGETS update)
  5. ExternalProject_Add_Step(FOO do_something COMMAND ${CMAKE_COMMAND} -E echo "Doing something")
  6. ExternalProject_Add_Step(FOO do_something_else COMMAND ${CMAKE_COMMAND} -E echo "Doing something else")
  7. ExternalProject_Add_StepTargets(FOO do_something)