Merge pull request #39 from kinemic/debian_architecture_crosscompile

do not use dpkg to change deb arch when crosscompiling
pull/45/head
Olivier Martin 2017-07-27 12:18:04 +02:00 committed by GitHub
commit 82684b107e
1 changed files with 3 additions and 1 deletions

View File

@ -112,8 +112,10 @@ else()
set(CPACK_GENERATOR "DEB;RPM;ZIP")
endif()
if (NOT CMAKE_SYSROOT)
# Detect platform architecture to use it for the Debian package
execute_process(COMMAND dpkg --print-architecture OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE OUTPUT_QUIET)
execute_process(COMMAND dpkg --print-architecture OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE OUTPUT_QUIET)
endif()
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libglib2.0-0")