1
0
mirror of synced 2025-01-18 00:56:49 +01:00

Fixed magic include dirs not defined on mac

This commit is contained in:
WerWolv 2021-01-25 15:27:33 +01:00
parent 27e5f8eeb6
commit 896c13a612

View File

@ -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()