Tests: RunCMake.FetchContent should not always force _deps removal

To properly test some functionality, tests may rely on not clearing
things like time stamps between cmake invocations. The RunCMake
infrastructure clears the build directory by default anyway, and
tests may individually ask for that to be disabled where needed.

The line being removed here was originally added to assist with
manually re-running individual tests locally outside the control of
RunCMake. That is no longer appropriate.
This commit is contained in:
Craig Scott
2024-06-07 17:16:13 +10:00
parent f97b25ec4b
commit e82e2c38c1

View File

@@ -1,9 +1,6 @@
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)
else()