Skip to content

Commit 347a439

Browse files
authored
Merge pull request swiftlang#3032 from apple/maxd/wasi-blocks
Add `CMakeLists.txt` to `Sources/BlocksRuntime`
2 parents 4aaaa36 + 02b7d8f commit 347a439

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Sources/BlocksRuntime/CMakeLists.txt

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
add_library(BlocksRuntime
2+
data.c
3+
runtime.c)
4+
5+
target_include_directories(BlocksRuntime PUBLIC
6+
${CMAKE_CURRENT_SOURCE_DIR})
7+
8+
set_target_properties(BlocksRuntime PROPERTIES
9+
POSITION_INDEPENDENT_CODE FALSE)
10+
11+
add_library(BlocksRuntime::BlocksRuntime ALIAS BlocksRuntime)
12+
13+
install(TARGETS BlocksRuntime
14+
ARCHIVE DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
15+
LIBRARY DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>)

0 commit comments

Comments
 (0)