blob: fc6003c6bccbcd0d1229dd3e733f5c284aa33d74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()
|