Skip to content

Commit 3d2dc41

Browse files
authored
[CMake] Reduce the size of the _FoundationCollections module (#395)
1 parent 3e120b4 commit 3d2dc41

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Sources/CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,12 @@ else()
5555
add_subdirectory(Collections)
5656
endif()
5757

58-
add_subdirectory(BitCollections)
59-
add_subdirectory(DequeModule)
60-
add_subdirectory(HashTreeCollections)
61-
add_subdirectory(HeapModule)
58+
if(NOT COLLECTIONS_FOUNDATION_TOOLCHAIN_MODULE)
59+
add_subdirectory(BitCollections)
60+
add_subdirectory(DequeModule)
61+
add_subdirectory(HashTreeCollections)
62+
add_subdirectory(HeapModule)
63+
endif()
6264
add_subdirectory(OrderedCollections)
6365
add_subdirectory(RopeModule)
6466
add_subdirectory(InternalCollectionsUtilities)

0 commit comments

Comments
 (0)