[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#695369: dpkg-cross: cmake integration broken: ${DEB_*} -> $ENV{DEB_*}, and set CMAKE_CXX_COMPILER

Package: dpkg-cross
Version: 2.6.7
Severity: normal
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch raring

The cmake integration in dpkg-cross doesn't seem to work at all, or at
least not without some additional help.

Firstly, CMakeCross.txt uses ${DEB_HOST_ARCH} et al.  The correct syntax
(not that I can find any coherent documentation of this) appears to be

Secondly, the bit in the cmake documentation that says that you only
need to set one of CMAKE_C_COMPILER and CMAKE_CXX_COMPILER appears to be
what is technically known as a lie: or at least it doesn't work properly
in toolchain files.  I found I needed to set both.

Patch follows.  I feel slightly ill now.

Index: config/cmake/CMakeCross.txt
--- config/cmake/CMakeCross.txt	(revision 8410)
+++ config/cmake/CMakeCross.txt	(working copy)
@@ -4,13 +4,14 @@
 # set target system name
 #set compiler name
 #set path(s) to search for libraries/binaries/headers
 # ensure only cross-dirs are searched
 # search for programs in the build host directories


Colin Watson                                       [cjwatson@ubuntu.com]

Reply to: