You don't need to give these compiler flags to CMake, it will pick them up automatically from the envvars. In addition this definition is broken because it does not quote its arguments. So if, for example, in the future CC is set to "ccache gcc-whatever", this will break.
This duplication is there again:
export CC=$(DEB_ HOST_GNU_ TYPE)-gcc- 4.9 HOST_GNU_ TYPE)-g+ +-4.9
export CXX=$(DEB_
and
dh_auto_configure -- -DCMAKE_ INSTALL_ LOCALSTATEDIR= "/var" -DCMAKE_ C_COMPILER= $(CC) -DCMAKE_ CXX_COMPILER= $(CXX)
You don't need to give these compiler flags to CMake, it will pick them up automatically from the envvars. In addition this definition is broken because it does not quote its arguments. So if, for example, in the future CC is set to "ccache gcc-whatever", this will break.