File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change
1
+
1
2
if (APPLE )
2
3
set (CMAKE_SYSTEM_NAME Darwin )
3
4
endif ()
@@ -7,8 +8,8 @@ if (DEFINED ENV{BUILDROOT})
7
8
set (BUILDROOT $ENV{BUILDROOT} )
8
9
set (CMAKE_SYSROOT ${BUILDROOT} /arm-rockchip-linux-gnueabihf/sysroot )
9
10
else ()
10
- message ("warning: BUILDROOT environment variable assuming in current directory " )
11
- set (BUILDROOT "$ENV{HOME} /buildroot/output/host " )
11
+ message ("warning: BUILDROOT environment variable assuming in $ENV{HOME} /buildroot " )
12
+ set (BUILDROOT "$ENV{HOME} /buildroot/arm-rockchip-linux-gnueabihf_sdk-buildroot " )
12
13
set (CMAKE_SYSROOT ${BUILDROOT} /arm-rockchip-linux-gnueabihf/sysroot )
13
14
endif ()
14
15
@@ -18,10 +19,11 @@ else ()
18
19
# sensible defaults
19
20
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
20
21
# assume we are using homebrew
21
- set (TOOLSROOT /opt/homebrew/opt/llvm/bin )
22
- # non m1 macs need this instead, but you could also set TOOLS_ROOT
23
- # set(TOOLSROOT /usr/local/opt/llvm/bin)
24
-
22
+ if (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm64" )
23
+ set (TOOLSROOT /opt/homebrew/opt/llvm/bin )
24
+ else ()
25
+ set (TOOLSROOT /usr/local/opt/llvm/bin )
26
+ endif ()
25
27
elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
26
28
set (TOOLSROOT "/usr/bin" )
27
29
endif ()
You can’t perform that action at this time.
0 commit comments