mirror of https://github.com/opencardev/aasdk
Fixed cmakelists when target arch not set
commit
6d7eda1bcb
|
@ -2,14 +2,14 @@ cmake_minimum_required(VERSION 3.5.1)
|
||||||
|
|
||||||
if( TARGET_ARCH STREQUAL "amd64" )
|
if( TARGET_ARCH STREQUAL "amd64" )
|
||||||
message("Building for amd64")
|
message("Building for amd64")
|
||||||
|
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64")
|
||||||
elseif( TARGET_ARCH STREQUAL "armhf" )
|
elseif( TARGET_ARCH STREQUAL "armhf" )
|
||||||
message("Building for armhf")
|
message("Building for armhf")
|
||||||
set(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabihf-gcc-8)
|
set(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabihf-gcc-8)
|
||||||
set(CMAKE_CXX_COMPILER /usr/bin/arm-linux-gnueabihf-g++-8)
|
set(CMAKE_CXX_COMPILER /usr/bin/arm-linux-gnueabihf-g++-8)
|
||||||
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "armhf")
|
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "armhf")
|
||||||
else()
|
else()
|
||||||
message("Unknown target architecture. Exiting")
|
message("Target Architecture not specified, not cross compiling")
|
||||||
return()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set (aasdk_VERSION_MAJOR 3)
|
set (aasdk_VERSION_MAJOR 3)
|
||||||
|
|
Loading…
Reference in New Issue