summary refs log tree commit diff
path: root/deps/cmake/cmark.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'deps/cmake/cmark.cmake')
-rw-r--r--deps/cmake/cmark.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/deps/cmake/cmark.cmake b/deps/cmake/cmark.cmake
new file mode 100644
index 00000000..e0d45e88
--- /dev/null
+++ b/deps/cmake/cmark.cmake
@@ -0,0 +1,21 @@
+set(WINDOWS_FLAGS "")
+
+if(MSVC)
+    set(WINDOWS_FLAGS "-DCMAKE_GENERATOR_PLATFORM=x64")
+endif()
+
+ExternalProject_Add(
+  cmark
+
+  URL ${CMARK_URL}
+  URL_HASH SHA256=${CMARK_HASH}
+
+  BUILD_IN_SOURCE 0
+  SOURCE_DIR ${DEPS_BUILD_DIR}/cmark
+  CONFIGURE_COMMAND ${CMAKE_COMMAND}
+  -DCMAKE_INSTALL_PREFIX=${DEPS_INSTALL_DIR}
+  -DCMARK_TESTS=OFF
+  ${DEPS_BUILD_DIR}/cmark
+  ${WINDOWS_FLAGS})
+
+list(APPEND THIRD_PARTY_DEPS cmark)