Skip to content

Commit 89b038e

Browse files
author
Chris Bieneman
committed
[CMake] Include the CMark exports in SwiftConfig.cmake
Since Swift's build tree configuration depends on CMark, we should also include the CMark targets if they are not present and the Exports file is available.
1 parent 497cac6 commit 89b038e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/modules/SwiftConfig.cmake.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ set(SWIFT_LIBRARY_DIR "@SWIFT_CONFIG_LIBRARY_DIRS@")
1717
set(SWIFT_CMAKE_DIR "@SWIFT_CMAKE_DIR@")
1818
set(SWIFT_BINARY_DIR "@SWIFT_BINARY_DIR@")
1919

20+
if(NOT TARGET libcmark_static AND ${product}_PATH_TO_CMARK_BUILD)
21+
include(${${product}_PATH_TO_CMARK_BUILD}/src/CMarkExports.cmake)
22+
endif()
23+
2024
if(NOT TARGET swift)
2125
set(SWIFT_EXPORTED_TARGETS "@SWIFT_CONFIG_EXPORTS@")
2226
include("@SWIFT_EXPORTS_FILE@")

0 commit comments

Comments
 (0)