rapidjson: Add doc variant (#29460)
This commit is contained in:
parent
a6eed4a7c7
commit
f93107fff3
@ -42,3 +42,13 @@ class Rapidjson(CMakePackage):
|
|||||||
|
|
||||||
# Not correspond to define '-march=native' with Fujitsu compiler.
|
# Not correspond to define '-march=native' with Fujitsu compiler.
|
||||||
patch("remove_march.patch", when="%fj")
|
patch("remove_march.patch", when="%fj")
|
||||||
|
|
||||||
|
variant('doc', default=False,
|
||||||
|
description='Build and install documentation')
|
||||||
|
|
||||||
|
depends_on('doxygen+graphviz', when='+doc')
|
||||||
|
|
||||||
|
def cmake_args(self):
|
||||||
|
args = []
|
||||||
|
args.append(self.define_from_variant('RAPIDJSON_BUILD_DOC', 'doc'))
|
||||||
|
return args
|
||||||
|
Loading…
Reference in New Issue
Block a user