Skip to content

Commit

Permalink
typos and old cmake behavior for cmake _ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
benbovy committed Aug 19, 2024
1 parent 2be2923 commit 0472c4b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
ABSL_VERSION: "20240722.0"
S2GEOMETRY_VERSION: "0.11.1"
S2GEOGRAPHY_VERSION: "0.1.2"
CXX_STANDARD: "17"
CXX_STANDARD: 17
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -83,21 +83,21 @@ jobs:
ABSL_VERSION=${{ env.ABSL_VERSION }}
S2GEOMETRY_VERSION=${{ env.S2GEOMETRY_VERSION }}
S2GEOGRAPHY_VERSION=${{ env.S2GEOGRAPHY_VERSION }}
CXXSTANDARD=${{ env.CXXSTANDARD }}
CXX_STANDARD=${{ env.CXX_STANDARD }}
CIBW_ENVIRONMENT_MACOS:
DEPENDENCIES_DIR=${{ runner.temp }}/3rd-party
ABSL_VERSION=${{ env.ABSL_VERSION }}
S2GEOMETRY_VERSION=${{ env.S2GEOMETRY_VERSION }}
S2GEOGRAPHY_VERSION=${{ env.S2GEOGRAPHY_VERSION }}
CXXSTANDARD=${{ env.CXXSTANDARD }}
CXX_STANDARD=${{ env.CXX_STANDARD }}
MACOSX_DEPLOYMENT_TARGET=10.9
CMAKE_OSX_ARCHITECTURES='${{ matrix.cmake_osx_architectures }}'
CIBW_ENVIRONMENT_WINDOWS:
DEPENDENCIES_DIR='${{ runner.temp }}\3rd-party'
ABSL_VERSION=${{ env.ABSL_VERSION }}
S2GEOMETRY_VERSION=${{ env.S2GEOMETRY_VERSION }}
S2GEOGRAPHY_VERSION=${{ env.S2GEOGRAPHY_VERSION }}
CXXSTANDARD=${{ env.CXXSTANDARD }}
CXX_STANDARD=${{ env.CXX_STANDARD }}
CIBW_BEFORE_ALL: ./ci/install_3rdparty.sh
CIBW_BEFORE_ALL_WINDOWS: ci\install_3rdparty.cmd
# CIBW_BEFORE_BUILD_WINDOWS: pip install delvewheel
Expand Down
9 changes: 6 additions & 3 deletions ci/install_3rdparty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# - ABSL_VERSION
# - S2GEOMETRY_VERSION
# - S2GEOGRAPHY_VERSION
# - CXXSTANDARD
# - CXX_STANDARD
#
# This script assumes that library sources have been downloaded or copied in
# DEPENDENCIES_DIR (e.g., $DEPENDENCIES_DIR/absl-src-$ABSL_VERSION).
Expand All @@ -27,6 +27,9 @@ elif [ -z "$S2GEOMETRY_VERSION" ]; then
elif [ -z "$S2GEOGRAPHY_VERSION" ]; then
echo "S2GEOGRAPHY_VERSION must be set"
exit 1
elif [ -z "$CXX_STANDARD" ]; then
echo "CXX_STANDARD must be set"
exit 1
fi

SRC_DIR=$DEPENDENCIES_DIR/src
Expand Down Expand Up @@ -78,7 +81,7 @@ build_install_dependencies(){

cmake -S $SRC_DIR/s2geometry-$S2GEOMETRY_VERSION -B $S2GEOMETRY_BUILD_DIR \
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR \
-DABSL_ROOT=$INSTALL_DIR \
-Dabsl_ROOT=$INSTALL_DIR \
-DBUILD_TESTS=OFF \
-DBUILD_EXAMPLES=OFF \
-UGOOGLETEST_ROOT \
Expand All @@ -99,7 +102,7 @@ build_install_dependencies(){
cmake -S $SRC_DIR/s2geography-$S2GEOGRAPHY_VERSION -B $S2GEOGRAPHY_BUILD_DIR \
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR \
-DABSL_ROOT=$INSTALL_DIR \
-DS2_ROOT=$INSTALL_DIR \
-Ds2_ROOT=$INSTALL_DIR \
-DBUILD_TESTS=OFF \
-DS2GEOGRAPHY_S2_SOURCE=SYSTEM \
-DBUILD_EXAMPLES=OFF \
Expand Down

0 comments on commit 0472c4b

Please sign in to comment.