1
0
mirror of synced 2024-11-24 07:40:17 +01:00

Fixed capstone build issue on mac

On mac, capstone's include path is `include/capstone` instead of just `include`...
This commit is contained in:
WerWolv 2021-01-25 15:19:56 +01:00
parent 362f8acb15
commit 27e5f8eeb6
3 changed files with 4 additions and 4 deletions

View File

@ -29,8 +29,6 @@ add_subdirectory(plugins/libimhex)
# Add include directories
include_directories(include ${CRYPTO_INCLUDE_DIRS} ${CAPSTONE_INCLUDE_DIRS} ${MAGIC_INCLUDE_DIRS} ${Python_INCLUDE_DIRS})
message(${CAPSTONE_INCLUDE_DIRS})
detectOS()
detectArch()

View File

@ -1,6 +1,10 @@
#pragma once
#if __has_include(<capstone/capstone.h>)
#include <capstone/capstone.h>
#else
#include <capstone.h>
#endif
#include <hex.hpp>
namespace hex {

View File

@ -4,8 +4,6 @@
#include "helpers/disassembler.hpp"
#include <capstone/capstone.h>
#include <cstdio>
#include <string>
#include <vector>