Fix cmark loading on macos
This commit is contained in:
parent
a7bc00d9a5
commit
a13ea11e57
2 changed files with 7 additions and 9 deletions
|
|
@ -562,16 +562,12 @@ if(USE_BUNDLED_CMARK)
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
cmark
|
cmark
|
||||||
GIT_REPOSITORY https://github.com/commonmark/cmark.git
|
GIT_REPOSITORY https://github.com/commonmark/cmark.git
|
||||||
GIT_TAG 0.30.2
|
GIT_TAG 0.31.1
|
||||||
CMAKE_ARGS "CMARK_STATIC=ON CMARK_SHARED=OFF CMARK_TESTS=OFF CMARK_TESTS=OFF"
|
CMAKE_ARGS "BUILD_TESTING=OFF"
|
||||||
)
|
)
|
||||||
FetchContent_MakeAvailable(cmark)
|
FetchContent_MakeAvailable(cmark)
|
||||||
if (NOT TARGET cmark::cmark)
|
if (NOT TARGET cmark::cmark)
|
||||||
if(MSVC)
|
add_library(cmark::cmark ALIAS cmark)
|
||||||
add_library(cmark::cmark ALIAS cmark)
|
|
||||||
else()
|
|
||||||
add_library(cmark::cmark ALIAS cmark_static)
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
find_package(cmark REQUIRED 0.29.0)
|
find_package(cmark REQUIRED 0.29.0)
|
||||||
|
|
|
||||||
|
|
@ -70,10 +70,12 @@ modules:
|
||||||
config-opts:
|
config-opts:
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
- -DCMARK_TESTS=OFF
|
- -DCMARK_TESTS=OFF
|
||||||
|
- -DBUILD_TESTING=OFF
|
||||||
|
- -DBUILD_SHARED_LIBS=OFF
|
||||||
sources:
|
sources:
|
||||||
- sha256: bbcb8f8c03b5af33fcfcf11a74e9499f20a9043200b8552f78a6e8ba76e04d11
|
- sha256: 3da93db5469c30588cfeb283d9d62edfc6ded9eb0edc10a4f5bbfb7d722ea802
|
||||||
type: archive
|
type: archive
|
||||||
url: https://github.com/commonmark/cmark/archive/0.31.0.tar.gz
|
url: https://github.com/commonmark/cmark/archive/0.31.1.tar.gz
|
||||||
- name: fmt
|
- name: fmt
|
||||||
buildsystem: cmake-ninja
|
buildsystem: cmake-ninja
|
||||||
config-opts:
|
config-opts:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue