mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
dev-libs/cereal: Use cmake_comment_add_subdirectory
Results in: if(BUILD_DOC) #DONOTBUILD add_subdirectory(doc) endif() Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -20,7 +20,7 @@ DEPEND="dev-libs/rapidjson"
|
||||
|
||||
src_prepare() {
|
||||
if ! use doc ; then
|
||||
sed -i -e '/add_subdirectory(doc/d' CMakeLists.txt || die
|
||||
cmake_comment_add_subdirectory doc
|
||||
fi
|
||||
|
||||
# remove bundled rapidjson
|
||||
|
||||
Reference in New Issue
Block a user