portage's QA check complains:
> One or more CMake variables were not used by the project:
> DISABLE_STATIC
> LONG_OUTPUT_NAMES
The warning is misleading. Variables are used but not declared
as 'options()'s. This change tweaks the declaration.
Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/659880
Package-Manager: Portage-2.3.41, Repoman-2.3.9
--- /dev/null
+Explicitly declare used CMake options
+
+Bug: https://bugs.gentoo.org/659880
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1 +1,4 @@
++option(DISABLE_STATIC "Avoid building/installing static libraries.")
++option(LONG_OUTPUT_NAMES "Use longer names for binaries and libraries: squirrel3 (not sq).")
++
+ if(MSVC)
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
RDEPEND=""
DEPEND="${RDEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${P}-declare-options.patch
+)
+
src_configure() {
local mycmakeargs=(
-DINSTALL_LIB_DIR="$(get_libdir)" \