From 49bfec5f8201393cdff389fdb151c8da9ea2c7a5 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Fri, 30 Jun 2023 13:07:24 -0400 Subject: [PATCH] Use file(STRINGS) to read go_tests.txt Inspired by https://boringssl-review.googlesource.com/c/boringssl/+/61245, though it looks like we do still need CMAKE_CONFIGURE_DEPENDS to tell CMake to rerun itself. Change-Id: Iec2d23590dd45c647c5c53dc80aa8420795a7e73 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/61265 Auto-Submit: David Benjamin Reviewed-by: Adam Langley Commit-Queue: Adam Langley Commit-Queue: David Benjamin --- CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index be065577f..de1239807 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -570,10 +570,7 @@ else() add_custom_target(fips_specific_tests_if_any) endif() -# Read util/go_tests.txt into a CMake variable. -file(READ util/go_tests.txt GO_TESTS) -string(REPLACE "\n" ";" GO_TESTS "${GO_TESTS}") -list(REMOVE_ITEM GO_TESTS "") +file(STRINGS util/go_tests.txt GO_TESTS) set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS util/go_tests.txt)