-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Visual Studio 2017 build-time (linking) fix and improvements #4470
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
Conversation
cmake/jsoncpp.cmake
Outdated
| # Overwrite build and install commands to force Release build on MSVC. | ||
| BUILD_COMMAND cmake --build <BINARY_DIR> --config Release | ||
| INSTALL_COMMAND cmake --build <BINARY_DIR> --config Release --target install | ||
| BUILD_COMMAND ${JSONCPP_CMAKE_COMMAND} --build <BINARY_DIR> --config ${CMAKE_BUILD_TYPE} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That will not work reliably. If you want to use Debug build of jsoncpp in VS, remove both BUILD_COMMAND and INSTALL_COMMAND.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @chfast, this is an interesting point. I'm removing those two three then.
734a1bb to
7d67a66
Compare
|
Please merge if @chfast approves. |
chfast
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok to me, but I'll wait for Windows build.
Problems with emscripten?
7d67a66 to
230317e
Compare
Hopefully fix compiler errors on Clang on Apple Silicon. Patches are based on the following upstream PRs: argotorg/solidity#4160 argotorg/solidity#4235 argotorg/solidity#4470 argotorg/solidity#5699 argotorg/solidity#7268 argotorg/solidity#7827 argotorg/solidity#9383 argotorg/solidity#14725
As a companion PR to #4467, this PR actually not just fixes building Release mode on VS2017, but also supports Debug modes by not hard-coding nor forcing to Release-mode.
This is actually necessary to properly develop'n'debug using VS2017.
cmakewas hard-coded too, some lines belowExternalProject_Add, so I adapted that one, too.