Pass CGAL_DIR as a cmake variable to get CMake properly find CGALConfig.cmake

This commit is contained in:
Fernando Cacciola 2008-03-18 23:43:26 +00:00
parent 3de724258e
commit 4b3a56a39d
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ configure()
{
echo "Configuring... "
if eval 'cmake "\$CMAKE_GENERATOR" -DRUNNING_CGAL_AUTO_TEST=TRUE .' ; then
if eval 'cmake "\$CMAKE_GENERATOR" -DRUNNING_CGAL_AUTO_TEST=TRUE -DCGAL_DIR="\$CGAL_DIR" .' ; then
echo " succesful configuration" >> \$ERRORFILE
else
echo " ERROR: configuration" >> \$ERRORFILE