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