You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The targets exported via the CMakeConfig file should have a double-colon (::) in the name. eg: "cppnetlib::uri", "cppnetlib::server-parsers", etc.
The reason for this is that CMake uses the presence of :: in the name to deduce that a name is an imported target, even if that target does not exist. So if a user mistypes cppnetlib::uri as cpnetlib::uri, CMake will complain at configure time. However, if a user mistypes cppnetlib-uri as cpnetlib-uri, CMake will just tell the link to link to -lcpnetlib-uri, and the build will fail.
This can be done by using the NAMESPACE argument in the export(TARGETS) call.
I must admit I'm not really very well versed with CMake. I suspect we can fix this in the master branch without having to port it into the 0.12-release branch.
Activity
deanberris commentedon Apr 18, 2016
I must admit I'm not really very well versed with CMake. I suspect we can fix this in the master branch without having to port it into the 0.12-release branch.