Fixed magic include dirs not defined on mac
This commit is contained in:
parent
27e5f8eeb6
commit
896c13a612
@ -37,10 +37,12 @@ macro(findLibraries)
|
|||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig REQUIRED)
|
||||||
|
|
||||||
pkg_search_module(CRYPTO libcrypto)
|
pkg_search_module(CRYPTO libcrypto)
|
||||||
|
|
||||||
if(NOT CRYPTO_FOUND)
|
if(NOT CRYPTO_FOUND)
|
||||||
find_library(CRYPTO crypto REQUIRED)
|
find_library(CRYPTO crypto REQUIRED)
|
||||||
|
else()
|
||||||
|
set(CRYPTO_INCLUDE_DIRS ${CRYPTO_INCLUDEDIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
pkg_search_module(CAPSTONE REQUIRED capstone)
|
pkg_search_module(CAPSTONE REQUIRED capstone)
|
||||||
|
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
@ -60,6 +62,8 @@ macro(findLibraries)
|
|||||||
pkg_search_module(MAGIC libmagic)
|
pkg_search_module(MAGIC libmagic)
|
||||||
if(NOT MAGIC_FOUND)
|
if(NOT MAGIC_FOUND)
|
||||||
find_library(MAGIC magic REQUIRED)
|
find_library(MAGIC magic REQUIRED)
|
||||||
|
else()
|
||||||
|
set(MAGIC_INCLUDE_DIRS ${MAGIC_INCLUDEDIR})
|
||||||
endif()
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user