[Cmake-commits] [cmake-commits] lowman committed FindBoost.cmake 1.37 1.38

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Mar 20 23:52:34 EDT 2009


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv28749/Modules

Modified Files:
	FindBoost.cmake 
Log Message:
BUG: LIST(REMOVE_ITEM...) was being called on a variable that could be empty.


Index: FindBoost.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindBoost.cmake,v
retrieving revision 1.37
retrieving revision 1.38
diff -C 2 -d -r1.37 -r1.38
*** FindBoost.cmake	17 Mar 2009 02:28:35 -0000	1.37
--- FindBoost.cmake	21 Mar 2009 03:52:32 -0000	1.38
***************
*** 305,309 ****
    # On versions < 1.35, remove the System library from the considered list
    # since it wasn't added until 1.35.
!   if(Boost_VERSION)
       math(EXPR _boost_maj "${Boost_VERSION} / 100000")
       math(EXPR _boost_min "${Boost_VERSION} / 100 % 1000")
--- 305,309 ----
    # On versions < 1.35, remove the System library from the considered list
    # since it wasn't added until 1.35.
!   if(Boost_VERSION AND Boost_FIND_COMPONENTS)
       math(EXPR _boost_maj "${Boost_VERSION} / 100000")
       math(EXPR _boost_min "${Boost_VERSION} / 100 % 1000")



More information about the Cmake-commits mailing list