You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
415 B

# define input variable
set (path "")
separate_arguments(CMAKE_PATH_ARGUMENTS UNIX_COMMAND "${CMAKE_PATH_ARGUMENTS}")
if (CHECK_INVALID_OUTPUT)
# special handling for CMAKE_PATH
list(GET CMAKE_PATH_ARGUMENTS 0 command)
if (command STREQUAL "CMAKE_PATH")
cmake_path(CMAKE_PATH "" "input")
else()
cmake_path(${CMAKE_PATH_ARGUMENTS} "")
endif()
else()
cmake_path(${CMAKE_PATH_ARGUMENTS})
endif()