Check if Zydis is the top-level project for better FetchContent support#459
Check if Zydis is the top-level project for better FetchContent support#459athre0z merged 1 commit intozyantific:masterfrom
Conversation
c2c6a9a to
92818b1
Compare
|
Hmm, not a fan of removing the options entirely if I'd simply change the default values of those properties that are currently |
|
I suggested doing it this way to as well reduce option pollution while we are already on it. Not sure about vcpkg, but that needs to be checked first. I'm fine with your approach as well, if removing the options might break some stuff. Cmake itself is pretty forgiving with the options. Not declared ones are simply assumed to be OFF. |
92818b1 to
677656e
Compare
|
I've defaulted some of the options that were ON by default to ${ZYDIS_ROOT_PROJECT}, this gives us the same result but keeps the options alive and one can still override them with cmake command line using -D, so I think this is the most optimal approach. |
I don't think that our options are excessive. I far prefer having all the options visible over the user having to figure out why the hell some options magically disappeared once they include Zydis into their project. |
|
Fine for me! Maybe let's do the same change in Zycore and update the submodule as part of this PR before merging? |
|
Zycore doesn't appear to have any default- |
|
Yeah it's inconsistent at the moment. Would be better to have the same logic in Zycore as well. But as the tests are currently OFF for Zycore, we can as well merge right away 🙂 |
This prevents targets such as examples, doxygen, etc. from being added when consumed via FetchContent