-
Notifications
You must be signed in to change notification settings - Fork 2
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
Resolved runtime MT problem #3
Conversation
I ran the following command:
P.S. https://docs.conan.io/en/latest/reference/conanfile/tools/cmake/cmake.html |
@arttet My PR has
I don't why it's not using the PR settings instead |
Because of |
And it's fine indeed. What I meant is that you're using as well:
So it's not necessary to declare a |
Could you please tell me how to add
But I got the following error:
|
Is this the right way?
|
I guess what you're looking for is here Now, you can define them as the following example: def generate(self):
tc = CMakeToolchain(self)
tc.preprocessor_definitions["MYDEF"] = "MyValue"
tc.preprocessor_definitions.debug["MYCONFIGDEF"] = "MyDebugValue"
tc.preprocessor_definitions.release["MYCONFIGDEF"] = "MyReleaseValue"
tc.generate() It's the same as using |
OK, thank you |
d218cd9
to
2dbc24e
Compare
Hi @arttet Finally, I could add a workaround 😁 |
Issue related: conan-io/conan#9537 (comment)
Added manually
-MT
runtime to CC/CXX flags.