From b8abd25897c49aaf7461937283043f33c837031d Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Sat, 10 Jan 2015 20:41:52 +0100 Subject: find_package: Document CMAKE_FIND_PACKAGE_NAME variable Signed-off-by: Gregor Jasny --- Help/command/find_package.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Help/command/find_package.rst b/Help/command/find_package.rst index 190d05c..7f518a6 100644 --- a/Help/command/find_package.rst +++ b/Help/command/find_package.rst @@ -312,6 +312,8 @@ When loading a find module or package configuration file ``find_package`` defines variables to provide information about the call arguments (and restores their original state before returning): +``CMAKE_FIND_PACKAGE_NAME`` + the ```` name which is searched for ``_FIND_REQUIRED`` true if ``REQUIRED`` option was given ``_FIND_QUIETLY`` -- cgit v0.12 From 8435088d6a387847bf58c3805424bd82ad6e09ca Mon Sep 17 00:00:00 2001 From: Brad King Date: Sun, 11 Jan 2015 15:20:14 -0500 Subject: Help: Document CMAKE_FIND_PACKAGE_NAME variable --- Help/manual/cmake-variables.7.rst | 1 + Help/variable/CMAKE_FIND_PACKAGE_NAME.rst | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 Help/variable/CMAKE_FIND_PACKAGE_NAME.rst diff --git a/Help/manual/cmake-variables.7.rst b/Help/manual/cmake-variables.7.rst index 99088e0..2a22f14 100644 --- a/Help/manual/cmake-variables.7.rst +++ b/Help/manual/cmake-variables.7.rst @@ -36,6 +36,7 @@ Variables that Provide Information /variable/CMAKE_EXECUTABLE_SUFFIX /variable/CMAKE_EXTRA_GENERATOR /variable/CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES + /variable/CMAKE_FIND_PACKAGE_NAME /variable/CMAKE_GENERATOR /variable/CMAKE_GENERATOR_PLATFORM /variable/CMAKE_GENERATOR_TOOLSET diff --git a/Help/variable/CMAKE_FIND_PACKAGE_NAME.rst b/Help/variable/CMAKE_FIND_PACKAGE_NAME.rst new file mode 100644 index 0000000..bd1a30f --- /dev/null +++ b/Help/variable/CMAKE_FIND_PACKAGE_NAME.rst @@ -0,0 +1,6 @@ +CMAKE_FIND_PACKAGE_NAME +----------------------- + +Defined by the :command:`find_package` command while loading +a find module to record the caller-specified package name. +See command documentation for details. -- cgit v0.12