Skip to content

Commit

Permalink
Use alias targets (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt authored Jun 2, 2024
1 parent fd3e9a6 commit 6bedd6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@ else ()
add_library("Zydis" STATIC)
target_compile_definitions("Zydis" PUBLIC "ZYDIS_STATIC_BUILD")
endif ()
add_library("Zydis::Zydis" ALIAS "Zydis")

target_link_libraries("Zydis" PUBLIC "Zycore")
target_link_libraries("Zydis" PUBLIC "Zycore::Zycore")
target_include_directories("Zydis"
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Expand Down
2 changes: 1 addition & 1 deletion dependencies/zycore
Submodule zycore updated 1 files
+1 −0 CMakeLists.txt

0 comments on commit 6bedd6c

Please sign in to comment.