Skip to content

Commit 5ee7cdc

Browse files
jmschonfeldiCharlesHu
authored andcommitted
Ensure that modules are installed into the correct path
1 parent 3d249b6 commit 5ee7cdc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CMakeLists.txt

+8
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ endif()
3333
project(Foundation
3434
LANGUAGES C Swift)
3535

36+
if(NOT SWIFT_SYSTEM_NAME)
37+
if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
38+
set(SWIFT_SYSTEM_NAME macosx)
39+
else()
40+
set(SWIFT_SYSTEM_NAME "$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>")
41+
endif()
42+
endif()
43+
3644
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
3745
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
3846
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

0 commit comments

Comments
 (0)