-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake: No (warning) flags passed during build, several unittests missing #240
Comments
Sorry that I should review the PR in more detail first. I just found out there are compilation errors in VS 2013 as well. Do u suggest to revert to PR first? |
Hi. It seemed there were no such unittests at the time I wrote that PR. These are easily added. As for build flags — while most are harmless, In case someone wants to build the library himself CFLAGS, CXXFLAGS are supported by cmake out of the box i.e. running As for reverting my PR: i'm ok either way. If you revert, I'll rebase my PR on top of current master and add warning flags and unit tests. Otherwise I'll just create another PR. I'm not sure if I could help with VS build though but maybe compilation errors will shed some light. |
Hi @jollyroger . Thank you for your quick response. I am not familiar with package issues. Will they include binaries for something like RapidJSON? Since the binaries are only unit tests and examples, I think probably should not be distributed as binary. If this is true, then I can try to work on the VC warnings/errors tonight. |
@miloyip , here you can see how previous versions of RapidJSON are distributed: https://packages.debian.org/search?keywords=rapidjson&searchon=names&suite=all§ion=all I'm very sorry, I forgot that it's a source-only library, so you are right, I'll look on the changes meanwhile and decide what to do with that PR. |
I discovered that in VC2013, |
I had these Issues when tested against Visual Studio, but I thought I had that thing fixed. there was an option for gtest's cmake to avoid this problem: https://github.com/miloyip/rapidjson/pull/192/files#diff-15547c54d3d4898a882b4ab7b3cee381R7 (test/CMakeLists.txt, line: 7). Could you try to set this to OFF ? |
I just tried adding |
Besides, shall |
Build directory with exactly this name is not needed anyway: you could build in a totally separate directory (as I did). But as a matter of convenience its ok. It is worth removing all previous lines with |
I fixed all problems @pah mentioned, although I still didn't add the |
I have to report that this compiler set of options generates valgrind errors for unittest run: |
The Valgrind errors have been worked around previously by forcing
We should update the hack in |
Hi @jollyroger , is there any update on this issue? Are you preparing for a PR? Thanks. |
I've created PR #244. Please review. |
Apart from the broken definition on MSVC (see comment above) it looks ok to me. |
@pah CMake does not create any temporary files in |
After the merge of #192, some issues popped up in the current regression runs:
-march=native -Wall -Wextra -Werror -Weffc++ -Wswitch-default
I've not reviewed the state of the Cmake support indetail. It might be good to rename
travis-doxygen.sh
to.travis-doxygen.sh
to avoid confusion with this file visible in the main folder.The text was updated successfully, but these errors were encountered: