mirror of https://github.com/labapart/gattlib
Merge pull request #39 from kinemic/debian_architecture_crosscompile
do not use dpkg to change deb arch when crosscompilingpull/45/head
commit
82684b107e
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue