diff options
| author | l10n daemon script <scripty@kde.org> | 2015-11-08 21:01:33 +0000 | 
|---|---|---|
| committer | l10n daemon script <scripty@kde.org> | 2015-11-08 21:01:33 +0000 | 
| commit | 7feccae76e01a65b406995b5ba9526fe9ade4299 (patch) | |
| tree | 99011137f4dedcf4bf242e167ac7dc70d9136b8e /tests/ECMAddTests/check_files.cmake | |
| parent | a1bb0b0488843165e606771b75a3a67ba8a131a6 (diff) | |
| parent | c88bc78e0ca3834c46b89ca9d14b404751da5d4a (diff) | |
| download | extra-cmake-modules-5.16.0-rc2.tar.gz extra-cmake-modules-5.16.0-rc2.tar.bz2  | |
Merge remote-tracking branch 'origin/master' into local_releasev5.16.0-rc2v5.16.0
Diffstat (limited to 'tests/ECMAddTests/check_files.cmake')
| -rw-r--r-- | tests/ECMAddTests/check_files.cmake | 15 | 
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ECMAddTests/check_files.cmake b/tests/ECMAddTests/check_files.cmake new file mode 100644 index 00000000..fc6003c6 --- /dev/null +++ b/tests/ECMAddTests/check_files.cmake @@ -0,0 +1,15 @@ +set(i 0) +set(in_file_args FALSE) +while (i LESS CMAKE_ARGC) +    if (in_file_args) +        if (NOT EXISTS "${CMAKE_ARGV${i}}") +            message(FATAL_ERROR "${CMAKE_ARGV${i}} does not exist") +        endif() +    elseif (CMAKE_ARGV${i} STREQUAL "-P") +        # skip script name +        math(EXPR i "${i} + 1") +        set(in_file_args TRUE) +    endif() +    math(EXPR i "${i} + 1") +endwhile() +  | 
