mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
build: adjust cmake file for auto settings depends folder on m1 systems (#4669)
This commit is contained in:
parent
ac1346278c
commit
4f3c2492eb
@ -20,7 +20,12 @@ include_directories(
|
|||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
set(DEPENDS_PREFIX depends/x86_64-pc-linux-gnu)
|
set(DEPENDS_PREFIX depends/x86_64-pc-linux-gnu)
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
|
EXECUTE_PROCESS( COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE ARCHITECTURE )
|
||||||
|
if( ${ARCHITECTURE} STREQUAL "arm64" )
|
||||||
|
set(DEPENDS_PREFIX depends/aarch64-apple-darwin21.2.0)
|
||||||
|
else()
|
||||||
set(DEPENDS_PREFIX depends/x86_64-apple-darwin19)
|
set(DEPENDS_PREFIX depends/x86_64-apple-darwin19)
|
||||||
|
endif()
|
||||||
elseif(WIN32)
|
elseif(WIN32)
|
||||||
set(DEPENDS_PREFIX depends/x86_64-w64-mingw32)
|
set(DEPENDS_PREFIX depends/x86_64-w64-mingw32)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user