![]() ![]() In file included from /usr/local/include/pplx/pplx.h:47: In file included from /usr/local/include/pplx/pplxtasks.h:61: In file included from /usr/local/include/cpprest/asyncrt_utils.h:17: In file included from /usr/local/include/cpprest/http_client.h:47: In file included from /Users/taylor/development/EveDataRetriever/EveDataRetriever.h:6: In file included from /Users/taylor/development/EveDataRetriever/EveDataRetriever.cpp:4: Building CXX object CMakeFiles/EveDataRetriever.dir/ Given that my project is relatively simple (so far) I’m attracted to the idea that Craig Scott posted. You can find the project here and the CMakeLists.txt here. This, of course, is likely the first question that comes to mind for anybody who knows CMake well. Please see the conclusion for more thoughts on this. ![]() I would like to thank the folks in the CPPLang Slack community for helping me identify that this was the problem. I have updated the CMakeLists.txt to have the properties set before the add_executable call and, lo and behold, it works appropriately. It expects all properties related to a target before you declare that target with add_executable or add_library. It turns out that I had a misunderstanding of how CMake expected targets to be declared. If I get a good answer from somebody I will update this post to reflect the changes made. I will post links to this post in various places where I think I might find answers other than Google, StackOverflow, and the CMake docs where I’ve already looked. One big note that I’ll make here is that this post is a description of a problem that I’m having. And, of course, I’ve run into a problem with CMake: Getting it to generate a Makefile or XCode project on MacOS that builds and links against C++11. This, of course, has required me to refresh my knowledge of CMake. Given that I’d like the project to run on more than one OS, I thought it’d be a good idea to use CMake to build it in several places. I’ve been toying with using the Microsoft CPPRestSDK library to practice with REST services and see how easily they’re done in C++. * Note:* This was originally posted on my blog. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |