|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-24 12:27:21
|
Module: performous
Branch: master
Commit: 6f90701c7d5a9657f3b847596f8d4af8cedf5f43
Author: Lasse Karkkainen <tro...@tr...>
Date: Tue Nov 24 14:16:09 2009 +0200
Improved status printout.
---
cmake/Modules/FindBoost.cmake | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/cmake/Modules/FindBoost.cmake b/cmake/Modules/FindBoost.cmake
index 96b6509..58c0fe0 100644
--- a/cmake/Modules/FindBoost.cmake
+++ b/cmake/Modules/FindBoost.cmake
@@ -68,6 +68,7 @@
# Copyright (c) 2007 Wengo
# Copyright (c) 2007 Mike Jackson
# Copyright (c) 2008 Andreas Pakulat <ap...@gm...>
+# Copyright (c) 2009 Lasse Kärkkäinen
#
# Redistribution AND use is allowed according to the terms of the New
# BSD license.
@@ -77,12 +78,15 @@
# Force proper redetection (to allow e.g. changed COMPONENTS)
set(Boost_FOUND false)
-find_package(Boost COMPONENTS ${Boost_FIND_COMPONENTS} NO_MODULE)
+find_package(Boost QUIET COMPONENTS ${Boost_FIND_COMPONENTS} NO_MODULE)
if (Boost_FOUND)
- message(STATUS "Found Boost ${Boost_VERSION}")
- message("${Boost_LIBRARIES}")
- message("${Boost_INCLUDE_DIRS}")
+ if (Boost_FIND_COMPONENTS)
+ set(_boost_COMP " (${Boost_FIND_COMPONENTS})")
+ else()
+ set(_boost_COMP " (using headers only)")
+ endif()
+ message(STATUS "Found Boost ${Boost_VERSION}${_boost_COMP}")
else()
# MESSAGE(STATUS "Finding Boost libraries.... ")
|