From 8e1af483bed41e49632e9ff88fbed46e0e16b12f Mon Sep 17 00:00:00 2001 From: Lenny Maiorani Date: Fri, 9 Oct 2020 16:22:29 -0400 Subject: [PATCH] CMake: Remove file globbing in AK/Tests Problem: - File globbing is performed at the time of build system generation. Any files which are not there at that time are not included. So, when a new file is added it is not built unless the build system is recreated. Solution: - Remove globbing from AK/Tests directory in favor of explicitly listing the files. --- AK/Tests/CMakeLists.txt | 42 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/AK/Tests/CMakeLists.txt b/AK/Tests/CMakeLists.txt index 07f9fc4f0f..675e2a4b64 100644 --- a/AK/Tests/CMakeLists.txt +++ b/AK/Tests/CMakeLists.txt @@ -1,4 +1,44 @@ -file(GLOB AK_TEST_SOURCES CONFIGURE_DEPENDS "*.cpp") +set(AK_TEST_SOURCES + TestAllOf.cpp + TestArray.cpp + TestAtomic.cpp + TestBase64.cpp + TestBinarySearch.cpp + TestBitmap.cpp + TestByteBuffer.cpp + TestChecked.cpp + TestCircularDeque.cpp + TestCircularDuplexStream.cpp + TestCircularQueue.cpp + TestDistinctNumeric.cpp + TestEndian.cpp + TestFormat.cpp + TestHashFunctions.cpp + TestHashMap.cpp + TestIPv4Address.cpp + TestJSON.cpp + TestLexicalPath.cpp + TestMACAddress.cpp + TestMemMem.cpp + TestMemoryStream.cpp + TestNeverDestroyed.cpp + TestNonnullRefPtr.cpp + TestNumberFormat.cpp + TestOptional.cpp + TestQueue.cpp + TestQuickSort.cpp + TestRefPtr.cpp + TestSourceGenerator.cpp + TestSpan.cpp + TestString.cpp + TestStringUtils.cpp + TestStringView.cpp + TestTypedTransfer.cpp + TestURL.cpp + TestUtf8.cpp + TestVector.cpp + TestWeakPtr.cpp +) foreach(source ${AK_TEST_SOURCES}) get_filename_component(name ${source} NAME_WE)