Commit Graph

3 Commits

Author SHA1 Message Date
Duncan Ogilvie
f38d56b692
Add back support for relocatable packages (#2431) 2024-08-17 23:54:12 +08:00
chayleaf
2f81f7bef8 allow absolute CMAKE_INSTALL_*DIR (#2134)
This patch fixes Capstone 5 build on NixOS.

NixOS's build infrastructure sets CMAKE_INSTALL_{LIB,INCLUDE}DIR to
absolute paths. If you append it to ${prefix}, you get the wrong path.
NixOS automatically detects it and links this issue:
https://github.com/NixOS/nixpkgs/issues/144170
2023-08-09 23:05:06 +08:00
Matthias C. M. Troffaes
3814ea95ee Add cmake config and export targets. (#1637)
These additions simplify using capstone in cmake projects:

find_package(capstone CONFIG REQUIRED)
add_executable(main main.cpp)
target_link_libraries(main PRIVATE capstone::capstone-static)
2020-06-02 20:58:33 +08:00