CMake build error when configuring project with ENABLE_SRV=OFF

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical - P2
    • 1.9.0
    • Affects Version/s: 1.8.2
    • Component/s: Build, cmake
    • Environment:
      OSX 10.3
      cmake version 3.8
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            A. Jesse Jiryu Davis
            Reporter:
            iulian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: