C++ driver does not build on macOS with Cmake 4.

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Duplicate
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • 🔵 Done
    • C Drivers
    • 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

      There is a change in policy that builds should prefer @rpath directives to find internal dependencies. Here is the error message

      CMake Error at build/_deps/mongo-c-driver-src/src/libbson/CMakeLists.txt:37 (cmake_policy):

        Policy CMP0042 may not be set to OLD behavior because this version of CMake

        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.

            Assignee:
            Unassigned
            Reporter:
            Martin Nygren
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: