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 \