cmake.patch 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index 5e812fb..0de18c8 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -75,7 +75,7 @@ set(ZYAN_ZYCORE_PATH
  6. # =============================================================================================== #
  7. if (ZYAN_SYSTEM_ZYCORE)
  8. - find_package(Zycore)
  9. +
  10. else ()
  11. # Try to initialize the Zycore submodule using Git
  12. if (NOT EXISTS "${ZYAN_ZYCORE_PATH}/CMakeLists.txt" AND
  13. @@ -127,8 +127,8 @@ set_target_properties("Zydis" PROPERTIES
  14. VERSION "${Zydis_VERSION}"
  15. SOVERSION "${Zydis_VERSION_MAJOR}.${Zydis_VERSION_MINOR}"
  16. DEFINE_SYMBOL "ZYDIS_SHOULD_EXPORT")
  17. -zyan_set_common_flags("Zydis")
  18. -zyan_maybe_enable_wpo("Zydis")
  19. +
  20. +
  21. if (ZYDIS_FEATURE_FORMATTER AND NOT ZYDIS_FEATURE_DECODER)
  22. message(
  23. @@ -237,7 +237,7 @@ if (ZYDIS_BUILD_SHARED_LIB AND WIN32)
  24. target_sources("Zydis" PRIVATE "resources/VersionInfo.rc")
  25. endif ()
  26. -zyan_set_source_group("Zydis")
  27. +
  28. configure_package_config_file(cmake/zydis-config.cmake.in
  29. "${CMAKE_CURRENT_BINARY_DIR}/zydis-config.cmake"