Hi gurus,

I'm trying to convert an old style debhelper rules file to the new
style. The problem I'm facin is that I don't know how to handle the fact
that I want to build debug and release with cmake.

Here are some relevant parts of the old rules file: 

build-stamp: configure-stamp  
        dh_testdir
        mkdir -p $(CURDIR)/build-debian-release
        (cd $(CURDIR)/build-debian-release; cmake
-DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:STRING=Release ..)
        mkdir -p $(CURDIR)/build-debian-debug
        (cd $(CURDIR)/build-debian-debug; cmake
-DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:STRING=Debug ..)
        (cd $(CURDIR)/build-debian-release; $(MAKE) )
        (cd $(CURDIR)/build-debian-debug; $(MAKE) )


But how does that fit into the new scheme?:


%:
        dh $@ --buildsystem cmake --builddirectory=build

override_dh_auto_configure :
        dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/usr 



Rgds
Richard


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1364591758.8637.6.camel@quadulrich

Reply via email to