summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakePresetsBuild/Good.cmake
diff options
context:
space:
mode:
authorSam Freed <safreed@microsoft.com>2021-01-13 22:48:58 (GMT)
committerBrad King <brad.king@kitware.com>2021-02-04 16:39:19 (GMT)
commit74a86566f0f27e849acdc1e0648b3ef223b13369 (patch)
tree0325dd071b7a8697cecd78826e6766766a14215c /Tests/RunCMake/CMakePresetsBuild/Good.cmake
parent56751c83aa1b9de7f3c785b17922eb9af6bc9e4a (diff)
downloadCMake-74a86566f0f27e849acdc1e0648b3ef223b13369.zip
CMake-74a86566f0f27e849acdc1e0648b3ef223b13369.tar.gz
CMake-74a86566f0f27e849acdc1e0648b3ef223b13369.tar.bz2
Tests: Add build preset tests
Diffstat (limited to 'Tests/RunCMake/CMakePresetsBuild/Good.cmake')
-rw-r--r--Tests/RunCMake/CMakePresetsBuild/Good.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakePresetsBuild/Good.cmake b/Tests/RunCMake/CMakePresetsBuild/Good.cmake
new file mode 100644
index 0000000..491d367
--- /dev/null
+++ b/Tests/RunCMake/CMakePresetsBuild/Good.cmake
@@ -0,0 +1,3 @@
+add_custom_target(good ALL)
+add_custom_command(TARGET good PRE_BUILD
+ COMMAND ${CMAKE_COMMAND} -E environment)