mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
b2496bf14c
Fixes: #21703
14 lines
394 B
CMake
14 lines
394 B
CMake
cmake_minimum_required(VERSION 3.9)
|
|
project(${RunCMake_TEST} NONE)
|
|
|
|
# Tests assume no previous downloads in the output directory
|
|
file(REMOVE_RECURSE ${CMAKE_CURRENT_BINARY_DIR}/_deps)
|
|
|
|
if(CMP0168 STREQUAL "NEW")
|
|
cmake_policy(SET CMP0168 NEW)
|
|
string(REGEX REPLACE "-direct$" "" RunCMake_TEST "${RunCMake_TEST}")
|
|
else()
|
|
cmake_policy(SET CMP0168 OLD)
|
|
endif()
|
|
include(${RunCMake_TEST}.cmake)
|