rapidjson: Add doc variant (#29460)

This commit is contained in:
Thomas Madlener 2022-03-13 16:52:30 +01:00 committed by GitHub
parent a6eed4a7c7
commit f93107fff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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