Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-551

CMake documented build option for Boost vs C++17 Implementation for shared_mutex

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.12.1
    • 0.13.0
    • Build, Documentation
    • None

    Description

      There was a recent approach to detecting if boost' implementation is needed, but I feel that it is not succinct and cannot be when it comes to linker issues. Referencing PR: https://github.com/apache/logging-log4cxx/pull/107.

      I have large applications that use shared_mutex, but require boost' implementation as not all components linked are able to use C++17 implementation at this time. A problem occurs during linkage when log4cxx is built using C++17's implementation but our other component is built using boost' implementation.

       

      Workaround:

      We currently can force cmake into using Boost' implementation by passing:

      -DSTD_SHARED_MUTEX_FOUND=0

      This isn't a documented 'feature'. I would like a documented approach to this. If -DSTD_SHARED_MUTEX_FOUND=0 is what we should use for this feature request, then it should be documented as such. I am putting forth this issue as current usage is not documented as supported and thus I suspect it may be lost in future commits.

      Attachments

        Activity

          People

            rmiddleton Robert Middleton
            Nicholas.Clark Nicholas Clark
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: