Fixed capstone build issue on mac
On mac, capstone's include path is `include/capstone` instead of just `include`...
This commit is contained in:
parent
362f8acb15
commit
27e5f8eeb6
@ -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()
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -4,8 +4,6 @@
|
||||
|
||||
#include "helpers/disassembler.hpp"
|
||||
|
||||
#include <capstone/capstone.h>
|
||||
|
||||
#include <cstdio>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
Loading…
Reference in New Issue
Block a user