[Cmake-commits] [cmake-commits] hoffman committed FindBoost.cmake 1.4.2.9 1.4.2.10 FindQt4.cmake 1.96.2.21 1.96.2.22

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Feb 10 17:28:10 EST 2009


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

Modified Files:
      Tag: CMake-2-6
	FindBoost.cmake FindQt4.cmake 
Log Message:
ENH: merge in some more fixes for RC 13


Index: FindQt4.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindQt4.cmake,v
retrieving revision 1.96.2.21
retrieving revision 1.96.2.22
diff -C 2 -d -r1.96.2.21 -r1.96.2.22
*** FindQt4.cmake	6 Feb 2009 21:15:16 -0000	1.96.2.21
--- FindQt4.cmake	10 Feb 2009 22:28:07 -0000	1.96.2.22
***************
*** 329,335 ****
  IF (QT_QMAKE_EXECUTABLE)
  
!   IF(QT_QMAKE_EXECUTABLE_LAST AND NOT QT_QMAKE_EXECUTABLE_LAST MATCHES "^${QT_QMAKE_EXECUTABLE}$")
!     SET(QT_QMAKE_CHANGED 1)
!   ENDIF(QT_QMAKE_EXECUTABLE_LAST AND NOT QT_QMAKE_EXECUTABLE_LAST MATCHES "^${QT_QMAKE_EXECUTABLE}$")
  
    SET(QT_QMAKE_EXECUTABLE_LAST "${QT_QMAKE_EXECUTABLE}" CACHE INTERNAL "" FORCE)
--- 329,335 ----
  IF (QT_QMAKE_EXECUTABLE)
  
!   IF(QT_QMAKE_EXECUTABLE_LAST)
!     STRING(COMPARE NOTEQUAL "${QT_QMAKE_EXECUTABLE_LAST}" "${QT_QMAKE_EXECUTABLE}" QT_QMAKE_CHANGED)
!   ENDIF(QT_QMAKE_EXECUTABLE_LAST)
  
    SET(QT_QMAKE_EXECUTABLE_LAST "${QT_QMAKE_EXECUTABLE}" CACHE INTERNAL "" FORCE)
***************
*** 1168,1172 ****
                    STRING(REGEX MATCH "[^ <\"]+\\.moc" _current_MOC "${_current_MOC_INC}")
                    GET_FILENAME_COMPONENT(_basename ${_current_MOC} NAME_WE)
!                   SET(_header ${_abs_PATH}/${_basename}.h)
                    SET(_moc    ${CMAKE_CURRENT_BINARY_DIR}/${_current_MOC})
                    QT4_CREATE_MOC_COMMAND(${_header} ${_moc} "${_moc_INCS}" "")
--- 1168,1176 ----
                    STRING(REGEX MATCH "[^ <\"]+\\.moc" _current_MOC "${_current_MOC_INC}")
                    GET_FILENAME_COMPONENT(_basename ${_current_MOC} NAME_WE)
!                   IF(EXISTS ${_abs_PATH}/${_basename}.hpp)
!                     SET(_header ${_abs_PATH}/${_basename}.hpp)
!                   ELSE(EXISTS ${_abs_PATH}/${_basename}.hpp)
!                     SET(_header ${_abs_PATH}/${_basename}.h)
!                   ENDIF(EXISTS ${_abs_PATH}/${_basename}.hpp)
                    SET(_moc    ${CMAKE_CURRENT_BINARY_DIR}/${_current_MOC})
                    QT4_CREATE_MOC_COMMAND(${_header} ${_moc} "${_moc_INCS}" "")

Index: FindBoost.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindBoost.cmake,v
retrieving revision 1.4.2.9
retrieving revision 1.4.2.10
diff -C 2 -d -r1.4.2.9 -r1.4.2.10
*** FindBoost.cmake	4 Feb 2009 16:44:01 -0000	1.4.2.9
--- FindBoost.cmake	10 Feb 2009 22:28:07 -0000	1.4.2.10
***************
*** 4,26 ****
  # == Using Header-Only libraries from within Boost: ==
  #
! #   FIND_PACKAGE( Boost 1.36.0 )
! #   INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
! #   ADD_EXECUTABLE(foo foo.cc)
  #
  # == Using actual libraries from within Boost: ==
  #
! #   SET(Boost_USE_STATIC_LIBS   ON)
! #   SET(Boost_USE_MULTITHREADED ON)
! #   FIND_PACKAGE( Boost 1.36.0 COMPONENTS date_time filesystem system ... )
! #   INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
  #
! #   ADD_EXECUTABLE(foo foo.cc)
! #   TARGET_LINK_LIBRARIES(foo ${Boost_LIBRARIES})
  #
! # The components list needs to be the actual names of boost libraries, that is
! # the part of the actual library files that differ on different libraries. So
! # its "date_time" for "libboost_date_time...". Anything else will result in
! # errors.  If you're using parts of Boost that contains header files only (e.g.
! # foreach) you do not need to specify COMPONENTS.
  #
  # You should provide a minimum version number that should be used. If you provide this 
--- 4,31 ----
  # == Using Header-Only libraries from within Boost: ==
  #
! #   find_package( Boost 1.36.0 )
! #   if(Boost_FOUND)
! #      include_directories(${Boost_INCLUDE_DIRS})
! #      add_executable(foo foo.cc)
! #   endif()
! #
  #
  # == Using actual libraries from within Boost: ==
  #
! #   set(Boost_USE_STATIC_LIBS   ON)
! #   set(Boost_USE_MULTITHREADED ON)
! #   find_package( Boost 1.36.0 COMPONENTS date_time filesystem system ... )
  #
! #   if(Boost_FOUND)
! #      include_directories(${Boost_INCLUDE_DIRS})
! #      add_executable(foo foo.cc)
! #      target_link_libraries(foo ${Boost_LIBRARIES})
! #   endif()
  #
! #
! # The components list needs to contain actual names of boost libraries only,
! # such as "date_time" for "libboost_date_time".  If you're using parts of
! # Boost that contain header files only (e.g. foreach) you do not need to
! # specify COMPONENTS.
  #
  # You should provide a minimum version number that should be used. If you provide this 
***************
*** 34,43 ****
  #     #including things in Boost.  It's important to note that setting
  #     Boost_USE_STATIC_LIBS to OFF is NOT enough to get you dynamic linking,
! #     autolinking typically uses static libraries by default.
  #
  #     Please see the section below near Boost_LIB_DIAGNOSTIC_DEFINITIONS for
  #     more details.  Adding a TARGET_LINK_LIBRARIES() as shown in the example
  #     above appears to cause VS to link dynamically if Boost_USE_STATIC_LIBS
! #     gets set to OFF.
  #
  # =========== The mess that is Boost_ADDITIONAL_VERSIONS (sorry?) ============
--- 39,50 ----
  #     #including things in Boost.  It's important to note that setting
  #     Boost_USE_STATIC_LIBS to OFF is NOT enough to get you dynamic linking,
! #     should you need this feature.  Automatic linking typically uses static
! #     libraries with a few exceptions (Boost.Python is one).
  #
  #     Please see the section below near Boost_LIB_DIAGNOSTIC_DEFINITIONS for
  #     more details.  Adding a TARGET_LINK_LIBRARIES() as shown in the example
  #     above appears to cause VS to link dynamically if Boost_USE_STATIC_LIBS
! #     gets set to OFF.  It is suggested you avoid automatic linking since it
! #     will make your application less portable.
  #
  # =========== The mess that is Boost_ADDITIONAL_VERSIONS (sorry?) ============
***************
*** 54,60 ****
  #
  # NOTE: If you add a new major 1.x version in Boost_ADDITIONAL_VERSIONS you should
! # add both 1.x and 1.x.0 as shown above.  Official boost include directories
  # omit the 3rd version number from include paths if it is 0 although not all
! # binary boost releases do so.
  #
  # SET(Boost_ADDITIONAL_VERSIONS "0.99" "0.99.0" "1.78" "1.78.0")
--- 61,67 ----
  #
  # NOTE: If you add a new major 1.x version in Boost_ADDITIONAL_VERSIONS you should
! # add both 1.x and 1.x.0 as shown above.  Official Boost include directories
  # omit the 3rd version number from include paths if it is 0 although not all
! # binary Boost releases do so.
  #
  # SET(Boost_ADDITIONAL_VERSIONS "0.99" "0.99.0" "1.78" "1.78.0")
***************
*** 84,92 ****
  #                                reports.
  # 
! #  Boost_COMPILER                Set this to the compiler suffix used by boost (e.g. -gcc43) if the
! #                                module has problems finding the proper Boost installation
  #
! #  BOOST_ROOT or BOOSTROOT       Preferred installation prefix for searching for Boost,
! #                                set this if the module has problems finding the proper Boost installation
  #
  #  BOOST_INCLUDEDIR              Set this to the include directory of Boost, if the
--- 91,103 ----
  #                                reports.
  # 
! #  Boost_COMPILER                Set this to the compiler suffix used by Boost
! #                                (e.g. "-gcc43") if FindBoods has problems finding
! #                                the proper Boost installation
  #
! #  These last three variables are available also as environment variables:
! #
! #  BOOST_ROOT or BOOSTROOT       The preferred installation prefix for searching for
! #                                Boost.  Set this if the module has problems finding
! #                                the proper Boost installation.
  #
  #  BOOST_INCLUDEDIR              Set this to the include directory of Boost, if the
***************
*** 96,120 ****
  #                                module has problems finding the proper Boost installation
  #
- #  The last three variables are available also as environment variables
- #
- #
  # Variables defined by this module:
  #
! #  Boost_FOUND                          System has Boost, this means the include dir was found,
! #                                       as well as all the libraries specified in the COMPONENTS list
  #
! #  Boost_INCLUDE_DIRS                   Boost include directories, not cached
  #
! #  Boost_INCLUDE_DIR                    This is almost the same as above, but this one is cached and may be
! #                                       modified by advanced users
  #
! #  Boost_LIBRARIES                      Link these to use the Boost libraries that you specified, not cached
  #
  #  Boost_LIBRARY_DIRS                   The path to where the Boost library files are.
  #
! #  Boost_VERSION                        The version number of the boost libraries that have been found,
! #                                       same as in version.hpp from Boost
  #
! #  Boost_LIB_VERSION                    The version number in filename form as its appended to the library filenames
  #
  #  Boost_MAJOR_VERSION                  major version number of boost
--- 107,131 ----
  #                                module has problems finding the proper Boost installation
  #
  # Variables defined by this module:
  #
! #  Boost_FOUND                          System has Boost, this means the include dir was
! #                                       found, as well as all the libraries specified in
! #                                       the COMPONENTS list.
  #
! #  Boost_INCLUDE_DIRS                   Boost include directories: not cached
  #
! #  Boost_INCLUDE_DIR                    This is almost the same as above, but this one is
! #                                       cached and may be modified by advanced users
  #
! #  Boost_LIBRARIES                      Link these to use the Boost libraries that you
! #                                       specified: not cached
  #
  #  Boost_LIBRARY_DIRS                   The path to where the Boost library files are.
  #
! #  Boost_VERSION                        The version number of the boost libraries that
! #                                       have been found, same as in version.hpp from Boost
  #
! #  Boost_LIB_VERSION                    The version number in filename form as
! #                                       it's appended to the library filenames
  #
  #  Boost_MAJOR_VERSION                  major version number of boost
***************
*** 124,134 ****
  #  Boost_LIB_DIAGNOSTIC_DEFINITIONS     [WIN32 Only] You can call
  #                                       add_definitions(${Boost_LIB_DIAGNOSTIC_DEFINTIIONS})
! #                                       to have diagnostic information about
! #                                       Boost's automatic linking outputted
! #                                       during compilation time.
  #
  # For each component you list the following variables are set.
  # ATTENTION: The component names need to be in lower case, just as the boost
! # library names however the cmake variables use upper case for the component
  # part. So you'd get Boost_SERIALIZATION_FOUND for example.
  #
--- 135,144 ----
  #  Boost_LIB_DIAGNOSTIC_DEFINITIONS     [WIN32 Only] You can call
  #                                       add_definitions(${Boost_LIB_DIAGNOSTIC_DEFINTIIONS})
! #                                       to have diagnostic information about Boost's
! #                                       automatic linking outputted during compilation time.
  #
  # For each component you list the following variables are set.
  # ATTENTION: The component names need to be in lower case, just as the boost
! # library names however the CMake variables use upper case for the component
  # part. So you'd get Boost_SERIALIZATION_FOUND for example.
  #
***************
*** 233,242 ****
      
      IF (Boost_${basename}_LIBRARY)
!       IF(WIN32)
!         # Workaround issue #8378.
!         SET(Boost_${basename}_LIBRARY ${Boost_${basename}_LIBRARY} CACHE STRING "The Boost ${basename} library")
!       ELSE()
!         SET(Boost_${basename}_LIBRARY ${Boost_${basename}_LIBRARY} CACHE FILEPATH "The Boost ${basename} library")
!       ENDIF()
  
        # Remove superfluous "debug" / "optimized" keywords from
--- 243,247 ----
      
      IF (Boost_${basename}_LIBRARY)
!       set(Boost_${basename}_LIBRARY ${Boost_${basename}_LIBRARY} CACHE FILEPATH "The Boost ${basename} library")
  
        # Remove superfluous "debug" / "optimized" keywords from
***************
*** 248,257 ****
        LIST(REMOVE_DUPLICATES Boost_LIBRARY_DIRS)
  
!       IF(WIN32)
!         # Workaround issue #8378.
!         SET(Boost_LIBRARY_DIRS ${Boost_LIBRARY_DIRS} CACHE STRING "Boost library directory")
!       ELSE()
!         SET(Boost_LIBRARY_DIRS ${Boost_LIBRARY_DIRS} CACHE FILEPATH "Boost library directory")
!       ENDIF()
        SET(Boost_${basename}_FOUND ON CACHE INTERNAL "Whether the Boost ${basename} library found")
      ENDIF (Boost_${basename}_LIBRARY)
--- 253,257 ----
        LIST(REMOVE_DUPLICATES Boost_LIBRARY_DIRS)
  
!       set(Boost_LIBRARY_DIRS ${Boost_LIBRARY_DIRS} CACHE FILEPATH "Boost library directory")
        SET(Boost_${basename}_FOUND ON CACHE INTERNAL "Whether the Boost ${basename} library found")
      ENDIF (Boost_${basename}_LIBRARY)
***************
*** 433,441 ****
        ENDIF()
        
!       LIST(APPEND _boost_PATH_SUFFIXES "boost-${_boost_BOOSTIFIED_VERSION}")
!       IF(WIN32)
!         # Yay Boost Pro!  We dig your underscores.
!         LIST(APPEND _boost_PATH_SUFFIXES "boost_${_boost_BOOSTIFIED_VERSION}")
!       ENDIF()
  
      ENDFOREACH(_boost_VER)
--- 433,441 ----
        ENDIF()
        
!       list(APPEND _boost_PATH_SUFFIXES "boost-${_boost_BOOSTIFIED_VERSION}")
!       if(WIN32)
!         # For BoostPro's underscores (and others?)
!         list(APPEND _boost_PATH_SUFFIXES "boost_${_boost_BOOSTIFIED_VERSION}")
!       endif()
  
      ENDFOREACH(_boost_VER)



More information about the Cmake-commits mailing list