-
Notifications
You must be signed in to change notification settings - Fork 55
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
Debug versus Release Configurations for MSVC Compiler #24
Comments
I did not have any particular reason for using a debug build, that's just what happened by default. Thus, creating a release version is fine. Specifying this in the Cmake file that might be preferable if possible, just to keep the instructions minimal. |
After consulting the web there apparently is nothing you can add to the CMakeLists.txt file to make it build a release version under MSVC. So I went ahead and revised the instructions in README.md to include the "Release" switch on the |
i'm no windows guy, but would this be relevant? :: http://stackoverflow.com/a/20423820/787801 |
Yes, I saw that option of adding another switch to the |
Looking at it a bit further, I agree the right place for that option is on the msbuild line. For visual studio cmake creates profiles for four different builds. Thus the msbuild line seems the right place to pick the configuration. |
The current instructions in the README.md file for building EPANET 3 using the Microsoft Visual C++ Build Tools creates a debug build of the project by default. Appending
/p:Configuration=Release
to themsbuild
command will create a release version placed in thebin\release
sub-directory. Is there any specific reason to use a debug build rather than a release one? If not, I can edit the README.md file to revise the MSVC build instructions.The text was updated successfully, but these errors were encountered: