summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/NinjaMultiConfig/PerConfigSources.cmake
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-10-26 18:52:39 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-10-26 19:37:04 (GMT)
commitd13bd6ec3d7232b4b62d3106684f4f57951f3b28 (patch)
tree60f15d15887fe0cc79cbfe701c79bce46b9e65eb /Tests/RunCMake/NinjaMultiConfig/PerConfigSources.cmake
parent3cc3d42aba879fff5e85b363ae8f21386a3f9f9b (diff)
downloadCMake-d13bd6ec3d7232b4b62d3106684f4f57951f3b28.zip
CMake-d13bd6ec3d7232b4b62d3106684f4f57951f3b28.tar.gz
CMake-d13bd6ec3d7232b4b62d3106684f4f57951f3b28.tar.bz2
Ninja Multi-Config: Don't try to calculate dependencies for "all"
Diffstat (limited to 'Tests/RunCMake/NinjaMultiConfig/PerConfigSources.cmake')
-rw-r--r--Tests/RunCMake/NinjaMultiConfig/PerConfigSources.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/NinjaMultiConfig/PerConfigSources.cmake b/Tests/RunCMake/NinjaMultiConfig/PerConfigSources.cmake
new file mode 100644
index 0000000..7483130
--- /dev/null
+++ b/Tests/RunCMake/NinjaMultiConfig/PerConfigSources.cmake
@@ -0,0 +1,8 @@
+enable_language(C)
+file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/main_$<CONFIG>.c" CONTENT
+[[int main(void)
+{
+ return 0;
+}
+]])
+add_executable(exe "${CMAKE_BINARY_DIR}/main_$<CONFIG>.c")