File tree 1 file changed +6
-6
lines changed 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,12 @@ function(add_swift_macro_library name)
31
31
# Add the library.
32
32
add_pure_swift_host_library(${name} SHARED ${ASML_SOURCES} )
33
33
34
+ # If we don't have the Swift swift parser, bail out, because the above
35
+ # add_pure_swift_host_library did nothing.
36
+ if (NOT SWIFT_SWIFT_PARSER)
37
+ return ()
38
+ endif ()
39
+
34
40
# Add rpath to 'lib/{platform}'
35
41
file (RELATIVE_PATH relpath_to_lib
36
42
"${SWIFT_HOST_PLUGINS_DEST_DIR} "
@@ -44,12 +50,6 @@ function(add_swift_macro_library name)
44
50
APPEND PROPERTY INSTALL_RPATH "$ORIGIN/.." )
45
51
endif ()
46
52
47
- # If we don't have the Swift swift parser, bail out, because the above
48
- # add_pure_swift_host_library did nothing.
49
- if (NOT SWIFT_SWIFT_PARSER)
50
- return ()
51
- endif ()
52
-
53
53
# Install into the plugin directory.
54
54
set_target_properties (${name}
55
55
PROPERTIES
You can’t perform that action at this time.
0 commit comments