File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 11function (get_host_triplet triplet)
22 set (host_arch ${CMAKE_SYSTEM_PROCESSOR} )
33 if (host_arch STREQUAL "x86" )
4- set (host_arch "i686" )
5- endif ()
6- if (host_arch STREQUAL "amd64" )
7- set (host_arch "x86_64" )
4+ set (host_arch "i686" PARENT_SCOPE)
5+ elseif (host_arch STREQUAL "amd64" )
6+ set (host_arch "x86_64" PARENT_SCOPE)
7+ elseif (host_arch STREQUAL "arm64" )
8+ set (host_arch "aarch64" PARENT_SCOPE)
89 endif ()
910
1011 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" )
@@ -30,10 +31,11 @@ endfunction()
3031function (get_build_triplet triplet)
3132 set (host_arch ${CMAKE_HOST_SYSTEM_PROCESSOR} )
3233 if (host_arch STREQUAL "x86" )
33- set (host_arch "i686" )
34- endif ()
35- if (host_arch STREQUAL "amd64" )
36- set (host_arch "x86_64" )
34+ set (host_arch "i686" PARENT_SCOPE)
35+ elseif (host_arch STREQUAL "amd64" )
36+ set (host_arch "x86_64" PARENT_SCOPE)
37+ elseif (host_arch STREQUAL "arm64" )
38+ set (host_arch "aarch64" PARENT_SCOPE)
3739 endif ()
3840
3941 if (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux" )
You can’t perform that action at this time.
0 commit comments