try something else for cmake

This commit is contained in:
Sylvestre Ledru 2016-03-13 10:41:50 +00:00
parent 7d63344482
commit 470974aef2

9
debian/rules vendored
View File

@ -210,15 +210,16 @@ override_dh_auto_configure: preconfigure
if test -d /tmp/cmake/bin; then \ if test -d /tmp/cmake/bin; then \
ls /tmp/cmake/bin; \ ls /tmp/cmake/bin; \
fi fi
if test -d /tmp/cmake/bin/; then \ CMAKE_BIN=cmake
export PATH=/tmp/cmake/bin:$$PATH; \ if test -f /tmp/cmake/bin/cmake; then \
CMAKE_BIN=/tmp/cmake/bin/cmake; \
fi fi
echo $$PATH echo $$CMAKE_BIN
# TODO(axw) specify build type for CMake # TODO(axw) specify build type for CMake
# TODO(axw) pass compiler flags, etc. # TODO(axw) pass compiler flags, etc.
cd $(TARGET_BUILD) && \ cd $(TARGET_BUILD) && \
cmake ../ \ $$CMAKE_BIN ../ \
-DCMAKE_INSTALL_PREFIX=/usr/lib/llvm-$(LLVM_VERSION) \ -DCMAKE_INSTALL_PREFIX=/usr/lib/llvm-$(LLVM_VERSION) \
-DCMAKE_VERBOSE_MAKEFILE=ON \ -DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \