Skip to content

Commit

Permalink
Build: Fix disabling Zydis options for SAFETYHOOK_FETCH_ZYDIS (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
cursey authored Apr 11, 2023
1 parent 2c134ea commit 4d3d080
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ if(SAFETYHOOK_BUILD_TESTS) # build-tests

endif()
if(SAFETYHOOK_FETCH_ZYDIS) # fetch-zydis
set(ZYDIS_BUILD_EXAMPLES OFF)
set(ZYDIS_BUILD_TOOLS OFF)
set(ZYDIS_BUILD_DOXYGEN OFF)
option(ZYDIS_BUILD_EXAMPLES "" OFF)
option(ZYDIS_BUILD_TOOLS "" OFF)
option(ZYDIS_BUILD_DOXYGEN "" OFF)

message(STATUS "Fetching Zydis (v4.0.0)...")
FetchContent_Declare(Zydis
Expand Down
6 changes: 3 additions & 3 deletions cmake.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ git = "https://github.com/zyantific/zydis.git"
tag = "v4.0.0"
shallow = true
cmake-before = """
set(ZYDIS_BUILD_EXAMPLES OFF)
set(ZYDIS_BUILD_TOOLS OFF)
set(ZYDIS_BUILD_DOXYGEN OFF)
option(ZYDIS_BUILD_EXAMPLES "" OFF)
option(ZYDIS_BUILD_TOOLS "" OFF)
option(ZYDIS_BUILD_DOXYGEN "" OFF)
"""

[find-package.Doxygen]
Expand Down

0 comments on commit 4d3d080

Please sign in to comment.