You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
642 B
17 lines
642 B
cmake_policy(VERSION ${CMAKE_VERSION})
|
|
if(CMAKE_XCODE_BUILD_SYSTEM VERSION_GREATER_EQUAL 12)
|
|
cmake_policy(SET CMP0114 NEW)
|
|
else()
|
|
cmake_policy(SET CMP0114 OLD) # Test deprecated behavior.
|
|
endif()
|
|
cmake_policy(SET CMP0135 NEW)
|
|
|
|
include(ExternalProject)
|
|
|
|
ExternalProject_Add(BAR URL https://cmake.org/bar.tar.gz)
|
|
|
|
ExternalProject_Add(FOO URL https://cmake.org/foo.tar.gz STEP_TARGETS update)
|
|
ExternalProject_Add_Step(FOO do_something COMMAND ${CMAKE_COMMAND} -E echo "Doing something")
|
|
ExternalProject_Add_Step(FOO do_something_else COMMAND ${CMAKE_COMMAND} -E echo "Doing something else")
|
|
ExternalProject_Add_StepTargets(FOO do_something)
|