From ad5411d0911344b527c0ad8cd5d2bdc364bfcb3b Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 3 Jul 2018 22:58:12 +0100 Subject: [PATCH] CMakeLists.txt: explicitly declare LONG_OUTPUT_NAMES and DISABLE_STATIC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Toralf noticed a minor infelicity in option declarations: ``` build $ cmake -DLONG_OUTPUT_NAMES=YES .. CMake Warning: Manually-specified variables were not used by the project: LONG_OUTPUT_NAMES ``` Note, CMake complains here about "unused" LONG_OUTPUT_NAMES. The option is used but not declares as user-tweakable via 'option()'. This change adds declarations for variables used in Gentoo. Reported-by: Toralf Förster Bug: https://bugs.gentoo.org/659880 Signed-off-by: Sergei Trofimovich --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a37b6a..33d4407 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,9 @@ else() cmake_minimum_required(VERSION 2.8) endif() +option(DISABLE_STATIC "Avoid building/installing static libraries.") +option(LONG_OUTPUT_NAMES "Use longer names for binaries and libraries: squirrel3 (not sq).") + set(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}" CACHE PATH "") set(CMAKE_BUILD_TYPE "Release" CACHE STRING "")