summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Grund <git@grundis.de>2018-12-16 16:14:23 (GMT)
committerCraig Scott <craig.scott@crascit.com>2018-12-31 00:56:40 (GMT)
commit1bac4678eaf7beefb12ad91ecdea0e551b4d0fcf (patch)
treeae5e50548e36c2e31fd7700cec47d6ecc861159d
parent5072598f0795f44e157bef8423feda7de24c5504 (diff)
downloadCMake-1bac4678eaf7beefb12ad91ecdea0e551b4d0fcf.zip
CMake-1bac4678eaf7beefb12ad91ecdea0e551b4d0fcf.tar.gz
CMake-1bac4678eaf7beefb12ad91ecdea0e551b4d0fcf.tar.bz2
GetPrerequisites: Add GET_PREREQUISITES_VERBOSE to set verbose
-rw-r--r--Modules/GetPrerequisites.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/GetPrerequisites.cmake b/Modules/GetPrerequisites.cmake
index 8d54fed..fea299c 100644
--- a/Modules/GetPrerequisites.cmake
+++ b/Modules/GetPrerequisites.cmake
@@ -63,6 +63,9 @@ searched first when a target without any path info is given. Then
standard system locations are also searched: PATH, Framework
locations, /usr/lib...
+The variable GET_PREREQUISITES_VERBOSE can be set to true to enable verbose
+output.
+
::
LIST_PREREQUISITES(<target> [<recurse> [<exclude_system> [<verbose>]]])
@@ -644,6 +647,10 @@ function(get_prerequisites target prerequisites_var exclude_system recurse exepa
set(rpaths "")
endif()
+ if(GET_PREREQUISITES_VERBOSE)
+ set(verbose 1)
+ endif()
+
if(NOT IS_ABSOLUTE "${target}")
message("warning: target '${target}' is not absolute...")
endif()