Skip to content

Commit

Permalink
LD_FLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Feb 3, 2020
1 parent 0541bdb commit 08469f4
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions scripts/azp/linux-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,19 @@ jobs:
conda create --yes --quiet --name pdal
source activate pdal
conda activate pdal
conda config --set always_yes True --set show_channel_urls True
conda config --add channels conda-forge
conda config --set channel_priority strict
conda install --yes --quiet --name pdal conda-build ninja conda-forge-ci-setup=2 -y
conda install --yes --quiet --name pdal -c conda-forge pdal --only-deps -y
conda install --yes --quiet --name pdal -c conda-forge pdal gdal=3.0.2=py37hbb2a789_0 --only-deps -y
displayName: Install PDAL dependencies
- script: |
. /opt/conda/etc/profile.d/conda.sh
source activate pdal
conda activate pdal
echo "current directory:" `pwd`
mkdir build
cd build
cmake -G Ninja \
LDFLAGS="$LDFLAGS -Wl,-rpath-link,$CONDA_PREFIX/lib" cmake -G Ninja \
-DCMAKE_LIBRARY_PATH:FILEPATH="$CONDA_PREFIX/lib" \
-DCMAKE_INCLUDE_PATH:FILEPATH="$CONDA_PREFIX/include" \
-DCMAKE_FIND_FRAMEWORK="NEVER" \
Expand All @@ -47,30 +46,26 @@ jobs:
..
displayName: 'CMake'
- script: |
. /opt/conda/etc/profile.d/conda.sh
cd build
source activate pdal
conda activate pdal
ninja
displayName: 'Build'
- script: |
. /opt/conda/etc/profile.d/conda.sh
cd build
export PDAL_DRIVER_PATH=`pwd`/lib
source activate pdal
conda activate pdal
ctest -V
displayName: 'Test'
- script: |
. /opt/conda/etc/profile.d/conda.sh
export PDAL_TEST_DIR=`pwd`/test
cd build
source activate pdal
conda activate pdal
ls build/lib/*
ninja install
displayName: 'Install'
- script: |
. /opt/conda/etc/profile.d/conda.sh
export BASE=`pwd`
source activate pdal
conda activate pdal
for EXAMPLE in writing writing-filter writing-kernel writing-reader writing-writer
do
cd $BASE/examples/$EXAMPLE
Expand Down

0 comments on commit 08469f4

Please sign in to comment.