diff options
author | Brad King <brad.king@kitware.com> | 2013-06-24 12:37:58 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-06-24 12:37:58 (GMT) |
commit | eadb85ff6cce8211046d906adfe9883477ecffae (patch) | |
tree | f4edbf7726eabd3c2f1d7b0b10d7089071952860 /Modules | |
parent | 1c63a67e561f017316082a8666bcfbbdc7bcd12b (diff) | |
parent | 86cbd7312a766485eb26219c197b78ae079d44a3 (diff) | |
download | CMake-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.cmake | 7 |
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") |