diff options
Diffstat (limited to 'Tests/BuildDepends/Project/link_depends_no_shared_check.cmake')
-rw-r--r-- | Tests/BuildDepends/Project/link_depends_no_shared_check.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/BuildDepends/Project/link_depends_no_shared_check.cmake b/Tests/BuildDepends/Project/link_depends_no_shared_check.cmake new file mode 100644 index 000000000..3a611370f --- /dev/null +++ b/Tests/BuildDepends/Project/link_depends_no_shared_check.cmake @@ -0,0 +1,7 @@ +if(NOT EXISTS "${lib}" OR NOT EXISTS "${exe}") + file(REMOVE "${out}") +elseif("${exe}" IS_NEWER_THAN "${lib}") + file(WRITE "${out}" "1\n") +else() + file(WRITE "${out}" "0\n") +endif() |