summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-06-24 12:37:58 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-06-24 12:37:58 (GMT)
commiteadb85ff6cce8211046d906adfe9883477ecffae (patch)
treef4edbf7726eabd3c2f1d7b0b10d7089071952860 /Modules
parent1c63a67e561f017316082a8666bcfbbdc7bcd12b (diff)
parent86cbd7312a766485eb26219c197b78ae079d44a3 (diff)
downloadCMake-eadb85ff6cce8211046d906adfe9883477ecffae.zip
CMake-eadb85ff6cce8211046d906adfe9883477ecffae.tar.gz
CMake-eadb85ff6cce8211046d906adfe9883477ecffae.tar.bz2
Merge topic 'FindBoost-error-reason-static'
86cbd73 FindBoost: Clarify failure on missing 'static' libs (#14235)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindBoost.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index d1ce2f4..4cc32be 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -1020,7 +1020,12 @@ if(Boost_FOUND)
# We were unable to find some libraries, so generate a sensible
# error message that lists the libraries we were unable to find.
set(Boost_ERROR_REASON
- "${Boost_ERROR_REASON}\nThe following Boost libraries could not be found:\n")
+ "${Boost_ERROR_REASON}\nCould not find the following")
+ if(Boost_USE_STATIC_LIBS)
+ set(Boost_ERROR_REASON "${Boost_ERROR_REASON} static")
+ endif()
+ set(Boost_ERROR_REASON
+ "${Boost_ERROR_REASON} Boost libraries:\n")
foreach(COMPONENT ${_Boost_MISSING_COMPONENTS})
set(Boost_ERROR_REASON
"${Boost_ERROR_REASON} boost_${COMPONENT}\n")