File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed
tools/swift-syntax-parser-test Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -7,23 +7,21 @@ add_swift_host_tool(swift-syntax-parser-test
7
7
Support
8
8
SWIFT_COMPONENT tools
9
9
)
10
- if (NOT SWIFT_BUILT_STANDALONE AND NOT CMAKE_C_COMPILER_ID MATCHES Clang )
11
- add_dependencies (swift-syntax-parser-test clang )
12
- endif ()
13
- target_link_libraries (swift-syntax-parser-test
14
- PRIVATE
15
- libSwiftSyntaxParser
16
- )
17
-
18
10
if (CMAKE_SYSTEM_NAME STREQUAL Darwin )
19
11
set_target_properties (swift-syntax-parser-test PROPERTIES
20
12
BUILD_WITH_INSTALL_RPATH YES
21
13
INSTALL_RPATH @executable_path/../lib )
14
+ elseif (NOT CMAKE_SYSTEM_NAME STREQUAL Windows )
15
+ set_target_properties (swift-syntax-parser-test PROPERTIES
16
+ BUILD_WITH_INSTALL_RPATH YES
17
+ INSTALL_RPATH ${SWIFT_LIBRARY_OUTPUT_INTDIR} )
22
18
endif ()
19
+ target_compile_options (swift-syntax-parser-test PRIVATE
20
+ -fblocks )
21
+ target_link_libraries (swift-syntax-parser-test PRIVATE
22
+ $< $< NOT:$< PLATFORM_ID:Darwin> > :BlocksRuntime>
23
+ libSwiftSyntaxParser )
23
24
24
- set_property (TARGET swift-syntax-parser-test APPEND_STRING PROPERTY
25
- COMPILE_FLAGS " -fblocks" )
26
- if (NOT CMAKE_SYSTEM_NAME STREQUAL Darwin )
27
- target_link_libraries (swift-syntax-parser-test PRIVATE
28
- BlocksRuntime )
25
+ if (NOT SWIFT_BUILT_STANDALONE AND NOT CMAKE_C_COMPILER_ID MATCHES Clang )
26
+ add_dependencies (swift-syntax-parser-test clang )
29
27
endif ()
You can’t perform that action at this time.
0 commit comments