mirror of https://github.com/CGAL/cgal
Fix for those scripts
Use the `${INIT_FILE:+..}` syntax, for compatibility when `INIT_FILE`
is unset or empty.
This commit is contained in:
parent
8c744204de
commit
3fc43f9e9f
|
|
@ -525,7 +525,7 @@ export MAKE_CMD;
|
||||||
export CGAL_BINARY_DIR;
|
export CGAL_BINARY_DIR;
|
||||||
export CGAL_REFERENCE_CACHE_DIR;
|
export CGAL_REFERENCE_CACHE_DIR;
|
||||||
cd '${CGAL_BINARY_DIR}';
|
cd '${CGAL_BINARY_DIR}';
|
||||||
cmake -C"${CGAL_REFERENCE_CACHE_DIR}/init.cmake" '${CMAKE_GENERATOR}' -DRUNNING_CGAL_AUTO_TEST=TRUE \\
|
cmake \${INIT_FILE:+"-C\${INIT_FILE}"} '${CMAKE_GENERATOR}' -DRUNNING_CGAL_AUTO_TEST=TRUE \\
|
||||||
-DCGAL_REFERENCE_CACHE_DIR="\$CGAL_REFERENCE_CACHE_DIR" \\
|
-DCGAL_REFERENCE_CACHE_DIR="\$CGAL_REFERENCE_CACHE_DIR" \\
|
||||||
VERBOSE=1 \\
|
VERBOSE=1 \\
|
||||||
../../..;
|
../../..;
|
||||||
|
|
|
||||||
|
|
@ -74,20 +74,20 @@ cat << EOF
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
header "configure"
|
header "configure"
|
||||||
cat << EOF
|
cat << 'EOF'
|
||||||
|
|
||||||
configure()
|
configure()
|
||||||
{
|
{
|
||||||
echo "Configuring... "
|
echo "Configuring... "
|
||||||
|
|
||||||
if eval 'cmake -C"\$INIT_FILE" "\$CMAKE_GENERATOR" -DRUNNING_CGAL_AUTO_TEST=TRUE \\
|
if eval 'cmake ${INIT_FILE:+"-C${INIT_FILE}"} "$CMAKE_GENERATOR" -DRUNNING_CGAL_AUTO_TEST=TRUE \\
|
||||||
-DCGAL_DIR="\$CGAL_DIR" \\
|
-DCGAL_DIR="$CGAL_DIR" \\
|
||||||
--no-warn-unused-cli \\
|
--no-warn-unused-cli \\
|
||||||
.' ; then
|
.' ; then
|
||||||
|
|
||||||
echo " successful configuration" >> \$ERRORFILE
|
echo " successful configuration" >> $ERRORFILE
|
||||||
else
|
else
|
||||||
echo " ERROR: configuration" >> \$ERRORFILE
|
echo " ERROR: configuration" >> $ERRORFILE
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue