aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2023-06-30 13:07:24 -0400
committerBoringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-06-30 17:26:53 +0000
commit49bfec5f8201393cdff389fdb151c8da9ea2c7a5 (patch)
tree2aa1d21123225f5ec470dfe0168310e7b0f15925 /CMakeLists.txt
parent5d3124a304df8c69d38a73619bf4eae05b9d5545 (diff)
downloadboringssl-49bfec5f8201393cdff389fdb151c8da9ea2c7a5.zip
boringssl-49bfec5f8201393cdff389fdb151c8da9ea2c7a5.tar.gz
boringssl-49bfec5f8201393cdff389fdb151c8da9ea2c7a5.tar.bz2
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 <davidben@google.com> Reviewed-by: Adam Langley <agl@google.com> Commit-Queue: Adam Langley <agl@google.com> Commit-Queue: David Benjamin <davidben@google.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 1 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index be06557..de12398 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)