From 436227ee2b34bbfacdd2b16809094c8fdf4ef8bc Mon Sep 17 00:00:00 2001 From: Jeremy Schonfeld <1004103+jmschonfeld@users.noreply.github.com> Date: Thu, 1 Aug 2024 10:23:18 -0700 Subject: [PATCH] Fix CoreFoundation install path (#5037) --- 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