From 00f80b142c81102c7595d5e6b05cc175ac9fb82c Mon Sep 17 00:00:00 2001 From: Jeremy Schonfeld Date: Tue, 30 Jul 2024 11:32:39 -0700 Subject: [PATCH] Fix CoreFoundation install path --- Sources/CoreFoundation/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Sources/CoreFoundation/CMakeLists.txt b/Sources/CoreFoundation/CMakeLists.txt index 7444abd573..e366005f72 100644 --- a/Sources/CoreFoundation/CMakeLists.txt +++ b/Sources/CoreFoundation/CMakeLists.txt @@ -126,10 +126,16 @@ file(COPY DESTINATION ${CMAKE_BINARY_DIR}/_CModulesForClients/CoreFoundation) +if(NOT BUILD_SHARED_LIBS) + set(swift swift_static) +else() + set(swift swift) +endif() + install(DIRECTORY include/ DESTINATION - lib/swift/CoreFoundation) + lib/${swift}/CoreFoundation) if(NOT BUILD_SHARED_LIBS) install(TARGETS CoreFoundation