summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ExternalProject/IncludeScope-Add_Step.cmake
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2018-09-07 23:40:15 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-09-07 23:40:24 (GMT)
commit49cb2a504d1e00e51774a23bf1b91c982fa69e5d (patch)
treefa0f8c47b6389bcb228e87047a3d5a984ac4eb55 /Tests/RunCMake/ExternalProject/IncludeScope-Add_Step.cmake
parent917d98699e8dd13de89e2993b0b630cf64f17706 (diff)
parentdf1ddeec128d68cc636f2dde6c2acd87af5658b6 (diff)
downloadCMake-49cb2a504d1e00e51774a23bf1b91c982fa69e5d.zip
CMake-49cb2a504d1e00e51774a23bf1b91c982fa69e5d.tar.gz
CMake-49cb2a504d1e00e51774a23bf1b91c982fa69e5d.tar.bz2
Merge topic 'ExternalProject-check-explicit-include'
df1ddeec12 ExternalProject: Report error if local variables are not defined Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Merge-request: !2281
Diffstat (limited to 'Tests/RunCMake/ExternalProject/IncludeScope-Add_Step.cmake')
-rw-r--r--Tests/RunCMake/ExternalProject/IncludeScope-Add_Step.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/RunCMake/ExternalProject/IncludeScope-Add_Step.cmake b/Tests/RunCMake/ExternalProject/IncludeScope-Add_Step.cmake
new file mode 100644
index 0000000..2a820f8
--- /dev/null
+++ b/Tests/RunCMake/ExternalProject/IncludeScope-Add_Step.cmake
@@ -0,0 +1,13 @@
+function(IncludeScope_DefineProj)
+ include(ExternalProject)
+ ExternalProject_Add(MyProj
+ SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}
+ CONFIGURE_COMMAND ""
+ BUILD_COMMAND ""
+ INSTALL_COMMAND ""
+ )
+endfunction()
+
+IncludeScope_DefineProj()
+
+ExternalProject_Add_Step(MyProj extraStep COMMENT "Foo")