Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1049

Install target fails to install headers when source absolute path contains the substring "test"

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.3
    • Affects Version/s: 3.0.1
    • Component/s: Build
    • Labels:
      None

      I noticed something very odd when installing the driver and the install location path had the word in all lower case "test" at the beginning of any of the parent directories of the install location. The only headers that get installed are export.hpp, version.hpp, and config.hpp even though when it goes to install it says "Install configuration: "Release"". I've noticed this on both Ubuntu and Mac and with different compilers so it doesn't seem to be a OS or compiler problem. If I use the same exact cmake commands and just change the install location so that it doesn't contain the word "test" at the beginning of the parent directories it works.

      And so it fails when the path is one of the following
      /Users/nick/testing/mongoExp/mongo-cxx-install
      /home/hathawan/mongoExp/test/mongo-cxx-install
      /home/hathawan/mongoExp/testHold/mongo-cxx-install

      And it works with the following paths
      /home/hathawan/mongoExp/Test/mongo-cxx-install
      /home/hathawan/mongoExp/holdtestHold/mongo-cxx-install

      So I'm not sure what's happening but I'm guessing it's a cmake issue but I don't know cmake very well so I couldn't tell.

      Of course the work around is to not install to location that contains the word "test" but I thought it was odd and probably not intended behavior so I thought I would bring it up.

      NIck

            Assignee:
            david.golden@mongodb.com David Golden
            Reporter:
            nickjhathaway Nicholas J Hathaway
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: