[pymongoarrow] CMake error with MacOS on GitHub

XMLWordPrintableJSON

    • 🔵 Done
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Name of Failure:

      Policy CMP0042 may not be set to OLD behavior because this version of CMake no longer supports it

      Link to task:

      https://github.com/mongodb-labs/mongo-arrow/actions/runs/17723147517/job/50358946034

      Context of when and why the failure occurred:

      The version of CMake used on GHA might have changed, or libbson might have changed.

      Stack trace:

      CMake Error at src/libbson/CMakeLists.txt:141 (cmake_policy):
      -- Looking for strnlen - found
        Policy CMP0042 may not be set to OLD behavior because this version of CMake
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
        no longer supports it.  The policy was introduced in CMake version 3.0.0,
        and use of NEW behavior is now required.
      
        Please either update your CMakeLists.txt files to conform to the new
        behavior or use an older version of CMake that still supports the old
        behavior.  Run cmake --help-policy CMP0042 for more information.
      
      
      Adding -fPIC to compilation of bson_static components
      

            Assignee:
            Steve Silvester
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: