Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2396

CMake build error when configuring project with ENABLE_SRV=OFF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical - P2
    • Resolution: Fixed
    • 1.8.2
    • 1.9.0
    • build, cmake
    • OSX 10.3
      cmake version 3.8

    Description

      If mongoc is configured with ENABLE_SRV=OFF
      the following error occurs:
      invalid token at start of a preprocessor expression
      #if MONGOC_HAVE_DNSAPI != 1
      ...
      if a define directive doesn't have a token we cannot use comparator operator.
      we can use only #ifdef and if defined

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            tzulea iulian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: