summaryrefslogtreecommitdiffstats
path: root/Tests/CustomCommandByproducts/ExternalLibraryByproducts.c
diff options
context:
space:
mode:
authorAlois Klink <alois@aloisklink.com>2022-11-03 22:44:53 (GMT)
committerAlois Klink <alois@aloisklink.com>2022-11-03 23:27:16 (GMT)
commit6d6baffb85ab4e02848fa7a3752f967d6ecb9518 (patch)
tree6332704bfad1b549efd25c6c7b17607319cd2ed5 /Tests/CustomCommandByproducts/ExternalLibraryByproducts.c
parent4bcfff2df3889a60b64e46d2431229cc6871c981 (diff)
downloadCMake-6d6baffb85ab4e02848fa7a3752f967d6ecb9518.zip
CMake-6d6baffb85ab4e02848fa7a3752f967d6ecb9518.tar.gz
CMake-6d6baffb85ab4e02848fa7a3752f967d6ecb9518.tar.bz2
Tests: Fix ExternalLibraryWithSubstitution test
The ExternalLibraryWithSubstitution test should test whether BUILD_BYPRODUCTS supports <BUILD_DIR> and other ExternalProject placeholder tokens. However, it's not hooked up correctly, and therefore isn't properly tested. This commit links it to an executable, to confirm whether it's possible to use the BUILD_BYPRODUCT in the Ninja generator. Fixes: commit 86032ae0eb (ExternalProject: Replace placeholder tokens in BYPRODUCTS, 2015-03-06)
Diffstat (limited to 'Tests/CustomCommandByproducts/ExternalLibraryByproducts.c')
-rw-r--r--Tests/CustomCommandByproducts/ExternalLibraryByproducts.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/CustomCommandByproducts/ExternalLibraryByproducts.c b/Tests/CustomCommandByproducts/ExternalLibraryByproducts.c
new file mode 100644
index 0000000..3588e53
--- /dev/null
+++ b/Tests/CustomCommandByproducts/ExternalLibraryByproducts.c
@@ -0,0 +1,5 @@
+extern int ExternalLibrary(void);
+int main(void)
+{
+ return (ExternalLibrary() + 1);
+}