[cmake-developers] [CMake 0014686]: FindBoost.cmake does not provide a way to use libraries built by boost with the runtime-debugging=off bjam parameter

Mantis Bug Tracker mantis at public.kitware.com
Tue Jan 7 19:41:16 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14686 
====================================================================== 
Reported By:                azdagron
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14686
Category:                   CMake
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-01-07 19:41 EST
Last Modified:              2014-01-07 19:41 EST
====================================================================== 
Summary:                    FindBoost.cmake does not provide a way to use
libraries built by boost with the runtime-debugging=off bjam parameter
Description: 
FindBoost.cmake unconditionally adds the "d" portion to the debug ABI tag
indicating that it wants the versions of the libraries using the debug runtime. 
When bjam is provided the runtime-debugging=off command-line option, the release
version of the runtime is used instead

Steps to Reproduce: 
1) bjam link=static runtime-link=shared runtime-debugging=off (produces a binary
on windows with no "-*d-" in the name, e.g.
libboost_date_time-vc110-mt-d-1_55.lib)
2) use FindBoost as follows:
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.55.0 REQUIRED COMPONENTS date_time)



Additional Information: 
I propose the inclusion of a Boost_USE_RUNTIME_DEBUGGING option to mirror that
provided to bjam with conditionally skips the addition of "d" to the debug ABI
tag:

+if(Boost_USE_RUNTIME_DEBUGGING)
  if(WIN32)
    if(MSVC OR "${CMAKE_CXX_COMPILER}" MATCHES "icl"
            OR "${CMAKE_CXX_COMPILER}" MATCHES "icpc")
      set(_boost_DEBUG_ABI_TAG "${_boost_DEBUG_ABI_TAG}g")
    endif()
  endif()
+endif()

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-01-07 19:41 azdagron       New Issue                                    
======================================================================




More information about the cmake-developers mailing list