[asterisk-scf-commits] asterisk-scf/release/cmake.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri Apr 1 15:20:39 CDT 2011


branch "master" has been updated
       via  373e081ef8278f0489cd59014ffab0010a1bc5c9 (commit)
      from  d5f4736580b310e3cd5a0b399498be8b8dcd3ace (commit)

Summary of changes:
 AsteriskSCF.cmake |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
commit 373e081ef8278f0489cd59014ffab0010a1bc5c9
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Fri Apr 1 15:19:49 2011 -0500

    FindBoost.cmake doesn't cause the script to fail if a library component isn't
    found, even if REQUIRED is specified. In order to abort the script when this
    happens, the script will now issue a FATAL_ERROR message if a required Boost
    library could not be found.

diff --git a/AsteriskSCF.cmake b/AsteriskSCF.cmake
index 3c20b08..2eff59c 100644
--- a/AsteriskSCF.cmake
+++ b/AsteriskSCF.cmake
@@ -290,6 +290,9 @@ function(find_Boost_library LIBRARY)
     if(NOT Boost_${libtag}_FOUND)
         find_package(Boost REQUIRED ${LIBRARY})
     endif()
+    if(NOT Boost_${libtag}_FOUND)
+        message(FATAL_ERROR "Boost library ${LIBRARY} not found")
+    endif()
 endfunction()
 
 # Function which adds Boost libraries to all components in the current

-----------------------------------------------------------------------


-- 
asterisk-scf/release/cmake.git



More information about the asterisk-scf-commits mailing list