From 470974aef24fca27b7042cf44cb025cc61594a42 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 13 Mar 2016 10:41:50 +0000 Subject: [PATCH] try something else for cmake --- debian/rules | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/debian/rules b/debian/rules index d6bf4560..8d593d31 100755 --- a/debian/rules +++ b/debian/rules @@ -210,15 +210,16 @@ override_dh_auto_configure: preconfigure if test -d /tmp/cmake/bin; then \ ls /tmp/cmake/bin; \ fi - if test -d /tmp/cmake/bin/; then \ - export PATH=/tmp/cmake/bin:$$PATH; \ + CMAKE_BIN=cmake + if test -f /tmp/cmake/bin/cmake; then \ + CMAKE_BIN=/tmp/cmake/bin/cmake; \ fi - echo $$PATH + echo $$CMAKE_BIN # TODO(axw) specify build type for CMake # TODO(axw) pass compiler flags, etc. cd $(TARGET_BUILD) && \ - cmake ../ \ + $$CMAKE_BIN ../ \ -DCMAKE_INSTALL_PREFIX=/usr/lib/llvm-$(LLVM_VERSION) \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \