Skip to content

Commit 8a16c8b

Browse files
committed
[CMake] Don't try to modify a macro target when it wasn't built
1 parent 72434ac commit 8a16c8b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/Macros/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ function(add_swift_macro_library name)
3131
# Add the library.
3232
add_pure_swift_host_library(${name} SHARED ${ASML_SOURCES})
3333

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+
3440
# Install into the plugin directory.
3541
set_target_properties(${name}
3642
PROPERTIES

0 commit comments

Comments
 (0)