summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ExternalProject/Add_StepDependencies.cmake
blob: 02c7c8e349334b0e1f4af61150a63396ef5c3d6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)

# download and do_something_else are not targets, but the file-level
# dependency are set.
ExternalProject_Add_StepDependencies(FOO download BAR)
ExternalProject_Add_StepDependencies(FOO do_something_else BAR)

# update and do_something are targets, therefore both file-level and
# target-level dependencies are set.
ExternalProject_Add_StepDependencies(FOO update BAR)
ExternalProject_Add_StepDependencies(FOO do_something BAR)
c7765d93c436f02d84f83b'>Changes to setpythonpath():Guido van Rossum1996-09-101-4/+23 * Stupid bug: complex(x,y) would yield x+xjGuido van Rossum1996-09-071-1/+1 * *** empty log message ***Guido van Rossum1996-08-291-0/+26 * Needed more includes...Guido van Rossum1996-08-291-6/+3 * *** empty log message ***Guido van Rossum1996-08-291-0/+22 * typo (#indef -> #undef)Guido van Rossum1996-08-261-1/+1 * Afterthough: leave both leading underscores in,Guido van Rossum1996-08-241-5/+5 * Oops need to mangle global statement separatelyGuido van Rossum1996-08-241-0/+7 * Name mangling, what the heck!Guido van Rossum1996-08-241-3/+80 * Use MS_DLL_ID as sys.winverGuido van Rossum1996-08-231-2/+2 * PYTHONWIN -> MS_COREDLLGuido van Rossum1996-08-221-1/+1 * Add needed #include <ctype.h>Guido van Rossum1996-08-211-0/+2 * Add explicit #undef _POSIX_THREADS for use on Solaris 2.5 (Sjoerd).Guido van Rossum1996-08-211-0/+1 * Don't require <dlfcn.h> -- rely on existence of dlopen().Guido van Rossum1996-08-201-1/+3 * Always include config.hGuido van Rossum1996-08-196-12/+0 * Many little fixes:Guido van Rossum1996-08-191-3/+19 * getprogramname -> Py_GetProgramName.Guido van Rossum1996-08-191-2/+2 * Raise TypeError, not KeyError, on unknown keyword argument.Guido van Rossum1996-08-191-2/+1 * Added *PyMarshal_WriteObjectToString() (moved the relevant code thereGuido van Rossum1996-08-19