forked from swiftlang/swift-cmark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add exports targets for build tree usage
This enables the use of the export targets from the build tree to allow easy use of the CMark library in other projects. Resolves: commonmark#307
- Loading branch information
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
set(HAVE_LIBCMARK_STATIC @CMARK_STATIC@) | ||
set(HAVE_LIBCMARK_SHARED @CMARK_SHARED@) | ||
|
||
if((HAVE_LIBCMARK_STATIC AND NOT TARGET libcmark_static) OR | ||
(HAVE_LIBCMARK_SHARED AND NOT TARGET libcmark)) | ||
include(cmarkTargets.cmake) | ||
endif() |