-
Notifications
You must be signed in to change notification settings - Fork 83
Conversation
Two remaining issues:
As a side - have you considered using waf for integrating VS? I deliberately did not use either GNU/make or cmake due to #15 . |
Additionally, cmake's files should be added to .gitignore. |
Yes I will add test and description in README, as I have commented in the issue. Maybe in a few days. Do you mean using waf is easier than others? I'm not familiar with waf, but it seems that cmake supports VS much better. And for cmake, add |
I use waf because:
Regarding .gitignore: I meant to add As a side note, I get warnings such as:
I don't use cmake, but shouldn't the variables be initialized with library names rather than absolute paths as you suggested in previous comments? |
Assuming I fill variables with
I added a few warnings and changed WIN32 check to MSVC. |
CMake will take care of path to those libraries, so I think it should be path, not lib name. The warning might be caused by the empty value of paths. With CMake, it is usually the user that should download or build dependencies. Though not so convenient, it does not mess my Windows with all kinds of dependencies and especially the PATH environment variable. (As you know, on Windows, many libraries includes their own Python, ssh, g++, and so on, and automatically add them to PATH. Really a nightmare.) And for CMake build files, I prefer to put them in a build folder. You can use the following commands: mkdir build |
Whoa, that's awesome to hear. Forget the part about I have all the dependencies installed. What can I do to make cmake discover them so that users don't need to edit CMakeLists to compile the project? |
I think that might be difficult. CMake supports only a few libraries, and some of them don't work well, especially when you build the library yourself with VS. That's why this time I manually added variables for libraries except for boost. And to be honest, I have only used CMake on two or three small projects. Not very experienced. Maybe I should ask someone else for help. |
People never need to modify CMakeLists. The paths can be set in CMake gui or by command line options. |
Meh, that's why I like waf, it just works (at least under Linux and cygwin). |
That's alright to me. At least it is possible to build with CMake. The path needs to be changed though. |
Alright then, so to merge this, we'll need
After this is taken care of, I'll merge your changes. |
OK. |
I'm back. I noticed another error C2001 when I build tests. According to VS Feedback, it is currently impossible to use utf-8 without BOM as source file in VS. Do you mind use UTF-8 with BOM for those files, or just fix them by using "\x" in string? |
I'd rather use Also not sure if this relevant, but I simplified building instructions for POSIX environments (click). Thought you might be interested. |
OK. Besides, the pull request started from a early commit, and now it has conflicts. I'll create a new one. |
@acaly, now that VS2015 with proper C++11 support is out, I believe things should go much smoother. I opened a branch, |
Related to #18.