Skip to content

Commit

Permalink
add build option for md2html executable (#184)
Browse files Browse the repository at this point in the history
Fixes build error for iOS, you can set BUILD_MD2HTML_EXECUTABLE as OFF

Signed-off-by: Dylan <2894220@gmail.com>
Co-authored-by: Martin Mitáš <mity@morous.org>
  • Loading branch information
nmgwddj and mity authored Jan 9, 2024
1 parent 61949ee commit ecce171
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ set(MD_VERSION "${MD_VERSION_MAJOR}.${MD_VERSION_MINOR}.${MD_VERSION_RELEASE}")
set(PROJECT_VERSION "${MD_VERSION}")
set(PROJECT_URL "https://github.com/mity/md4c")


option(BUILD_MD2HTML_EXECUTABLE "Whether to compile the md2html executable" ON)


if(WIN32)
# On Windows, given there is no standard lib install dir etc., we rather
# by default build static lib.
Expand Down Expand Up @@ -56,4 +60,6 @@ endif()
include(GNUInstallDirs)

add_subdirectory(src)
add_subdirectory(md2html)
if (BUILD_MD2HTML_EXECUTABLE)
add_subdirectory(md2html)
endif ()

0 comments on commit ecce171

Please sign in to comment.