Skip to content

Commit

Permalink
(#24099) md4c: expose md2html option
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjoel authored May 27, 2024
1 parent 3811fe7 commit d7c9b4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recipes/md4c/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ class Md4cConan(ConanFile):
options = {
"shared": [True, False],
"fPIC": [True, False],
"md2html": [True, False],
"encoding": ["utf-8", "utf-16", "ascii"],
}
default_options = {
"shared": False,
"fPIC": True,
"md2html": True,
"encoding": "utf-8",
}

Expand Down Expand Up @@ -53,6 +55,7 @@ def source(self):

def generate(self):
tc = CMakeToolchain(self)
tc.variables["BUILD_MD2HTML_EXECUTABLE"] = self.options.md2html
if self.options.encoding == "utf-8":
tc.preprocessor_definitions["MD4C_USE_UTF8"] = "1"
elif self.options.encoding == "utf-16":
Expand Down

0 comments on commit d7c9b4b

Please sign in to comment.