The changes in this PR should allow Zydis to find Zycore in more situations automatically. Most importantly, find_package(Zycore) is now something that we try automatically. This should allow distributions that ship Zycore as a separate package to do so more easily without having to delve into out CMake logic to discover the ZYAN_SYSTEM_ZYCORE option.
I tested:
building a full clone with submodule
building an incomplete clone (with and without git installed)
fallback to system zycore (by hacking the NixOS package, with and without -DZYAN_SYSTEM_ZYCORE)
The changes in this PR should allow Zydis to find Zycore in more situations automatically. Most importantly,
find_package(Zycore)
is now something that we try automatically. This should allow distributions that ship Zycore as a separate package to do so more easily without having to delve into out CMake logic to discover theZYAN_SYSTEM_ZYCORE
option.I tested:
-DZYAN_SYSTEM_ZYCORE
)