diff --git a/GeoModelCore/GeoModelKernel/GeoModelKernel/GeoVPhysVol.h b/GeoModelCore/GeoModelKernel/GeoModelKernel/GeoVPhysVol.h
index daa7945c49c8cb859edff5775b53218d0066de57..c5556fe801dfd3b6650acf2901590996855678eb 100644
--- a/GeoModelCore/GeoModelKernel/GeoModelKernel/GeoVPhysVol.h
+++ b/GeoModelCore/GeoModelKernel/GeoModelKernel/GeoVPhysVol.h
@@ -35,6 +35,7 @@ class GeoVPhysVol: public GeoPlacement {
     Query<unsigned int> indexOf(PVConstLink daughter) const;
 
     /// Returns the logical volume.
+    [[deprecated]]
     const GeoLogVol* getLogVol() const {
        return m_logVol;
     }
diff --git a/athena_ci/athena_build.sh b/athena_ci/athena_build.sh
index 220a60ad087242e45cf42260a7632789956bf359..c64bbb384722aae3407d0d438ec9416cfee082ba 100755
--- a/athena_ci/athena_build.sh
+++ b/athena_ci/athena_build.sh
@@ -206,7 +206,7 @@ export ROOT_INCLUDE_PATH="${gm_install_dir}/include:${ROOT_INCLUDE_PATH}"
 cmake "$ATHENA_SOURCE/Projects/WorkDir" \
   -GNinja \
   -DCMAKE_MAKE_PROGRAM="$NINJA" \
-  -DCMAKE_CXX_FLAGS="$EXTRA_FLAGS -isystem ${gm_install_dir}/include" \
+  -DCMAKE_CPP_FLAGS="$EXTRA_FLAGS -isystem ${gm_install_dir}/include" \
   -DATLAS_PACKAGE_FILTER_FILE="$package_filters" \
   -DCMAKE_CXX_COMPILER_LAUNCHER=$CCACHE \
   -DCMAKE_INSTALL_PREFIX=$install_dir