diff --git a/CMakeLists.txt b/CMakeLists.txt index 62d5de6..526cf6b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -138,7 +138,7 @@ function (locate_zycore) ) endfunction () -locate_zycore() + # =============================================================================================== # # Library configuration # @@ -163,8 +163,8 @@ set_target_properties("Zydis" PROPERTIES VERSION "${Zydis_VERSION}" SOVERSION "${Zydis_VERSION_MAJOR}.${Zydis_VERSION_MINOR}" DEFINE_SYMBOL "ZYDIS_SHOULD_EXPORT") -zyan_set_common_flags("Zydis") -zyan_maybe_enable_wpo("Zydis") + + if (ZYDIS_FEATURE_FORMATTER AND NOT ZYDIS_FEATURE_DECODER) message( @@ -273,7 +273,7 @@ if (ZYDIS_BUILD_SHARED_LIB AND WIN32) target_sources("Zydis" PRIVATE "resources/VersionInfo.rc") endif () -zyan_set_source_group("Zydis") + configure_package_config_file(cmake/zydis-config.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/zydis-config.cmake"