-
Notifications
You must be signed in to change notification settings - Fork 516
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
Disable explicit setting of MSVC runtime #236
Disable explicit setting of MSVC runtime #236
Conversation
Hello @emmenlau , have you seen that this is breaking all Visual Studio build variants on AppVeyor CI? I also tried on my new 3.x branch with updated Googletest and I get the same link issue. I am pretty sure it's something that could be fixed with a better configuration of Googletest, but I lack the time to dig the issue at the moment. Cheers! |
234e9ac
to
521181c
Compare
I've significantly modified this PR. I understand now that the But users building a shared Please review. |
Hello, I think we should keep this options effects inside the "build with tests" branches Right now, you are enforcing static linking by default to everyone Cheers! |
That was actually by intention, because I realized that having such a setting for the type of runtime is generally useful (and not uncommon) on the MSVC architecture. For example this setting also in google test or glfw to name just a few. But its really your call! Do you prefer to leave the setting for test only, or make it generally available? BTW, another idea would be to change google test from using static MSVC runtime to dynamic runtime by default. Was there a good reason to use the static runtime? I know that this is the google test default, but I never understood why... |
Well, I don't remember why they use static by default (there are multiple good reason in facts, like exceptions don't work well accross dynamic libraries IIRC) But I agree that the best thing would be to keep your new option and configure Google test to use the same linkage |
It's been a while since I looked into this... can the PR already move forward? Thanks a lot for your consideration! |
Sorry if I appear a bit pushy, but it will soon be one year since I started this PR - can we get it over the finish line? |
Anything I can do to help this move forward? |
Thank you again @emmenlau I am very sorry on how I treated your pull request and this very repository, there is no good excuse. |
Dear @SRombauts oh my, congratulations to the new child and all the best to the happy family!!!! I'm terribly sorry for being so pushy, often its not easy to look into other peoples domain but I'm very glad for you! Be safe and hope everyone is well! |
But please keep pushing, this is the kind of reminder I need to get back on tracks :) |
This PR removes the explicit setting of the MSVC runtime from SQLiteCpp. This is because overriding the default runtime can have various negative implications. For example, the build of SQLiteCpp fails on MSVC 2019 with errors:
This error is resolved by the PR.