You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I added a compile option /MP to the top-level CMakeLists.txt and want it to work on all subdirectories.
But when I open the generated solution, I see that the compile option only applies to the project Exe and not both.
Probably it will be wise to add only popular options.
Yes, my words in the OP were a bit inaccurate, that was just the result I wanted to see, not the solution.
It might be good to use the properties of the solution generated by the VS WDK wizard as a reference. That is, just adding the necessary properties and setting default preprocessor definitions for TARGET.
We can also consider adding a default value to some known properties if they would obviously conflict with the WDK project.
I made this attempt a few days ago, but I got stuck at the beginning.
I tried to fix the Configuration Type and Platform Toolset, but after that I had to change the Windows SDK Version to $(LatestTargetPlatformVersion), because I installed Windows SDK 10.0.18362.0 and 10.0.19041.0, but the WDK only has 10.0.18362.0 installed, so the default value of the Windows SDK Version generated by CMake does not compile for me. And I have tried many ways to do this, but at present it seems impossible to do it from CMake.
Simplified example:
top-level
CMakeLists.txt
:Exe
CMakeLists.txt
:Sys
CMakeLists.txt
:So, I added a compile option
/MP
to the top-levelCMakeLists.txt
and want it to work on all subdirectories.But when I open the generated solution, I see that the compile option only applies to the project
Exe
and not both.Of course, there is a workaround:
top-level
CMakeLists.txt
:Sys
CMakeLists.txt
:It works, but obviously not so elegantly.
I personally think this is a bug. So, I was wondering if it is possible for
FindWDK
to keep global compile options that are safe for driver projects?Thanks in advance!
The text was updated successfully, but these errors were encountered: