Skip to content

Commit

Permalink
build as x86 when dpkg cpu check fails
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 committed Jan 27, 2023
1 parent d6fffa3 commit 3e94837
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions 3rdparty/aques_talk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ catkin_package()
# http://manpages.ubuntu.com/manpages/bionic/man1/dpkg-architecture.1.html
execute_process(COMMAND dpkg-architecture -qDEB_TARGET_GNU_CPU OUTPUT_VARIABLE ARCHITECTURE)
message(STATUS "DEB_TARGET_GNU_CPU : ${ARCHITECTURE}")
if("${ARCHITECTURE}" MATCHES x86_64* )
set(AQTK2_LNX_LIB_DIR "lib64")
if("${ARCHITECTURE}" MATCHES x86_64* OR "${ARCHITECTURE}" STREQUAL "")
if("${ARCHITECTURE}" STREQUAL "")
message(WARNING "dpkg version is low, continue building as x86_64.")
endif()
set(AQTK2_LNX_LIB_DIR "lib64")
elseif("${ARCHITECTURE}" MATCHES i[0-9]86* )
set(AQTK2_LNX_LIB_DIR "lib")
set(AQTK2_LNX_LIB_DIR "lib")
else()
message(WARNING "${ARCHITECTURE} is not supported, do not compile aques_talk")
return()
message(WARNING "${ARCHITECTURE} is not supported, do not compile aques_talk")
return()
endif ()
message(STATUS "AQTK2_LNX_LIB_DIR : ${AQTK2_LNX_LIB_DIR}")

Expand Down

0 comments on commit 3e94837

Please sign in to comment.