mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 14:23:10 -05:00
1edf138506
For policy-specific tests, use the version before the policy was introduced. Otherwise, use 3.5 where possible. Also, remove `cmake_minimum_required()` and `project()` calls from individual cases where they are handled by `CMakeLists.txt`.
17 lines
415 B
CMake
17 lines
415 B
CMake
# 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()
|