Skip to content

Commit d143e5f

Browse files
author
jef
committed
preset python include path correctly for osgeo4w build
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11330 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent d5e0f5a commit d143e5f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ms-windows/osgeo4w/package.cmd

+7-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ set BISON=%PROGRAMFILES%\GnuWin32\bin\bison.exe
1717

1818
set VERSION=%1
1919
set PACKAGE=%2
20+
if %VERSION%=="" goto error
21+
if %PACKAGE%=="" goto error
2022

2123
PROMPT qgis%VERSION%$g
2224

@@ -76,7 +78,8 @@ cmake -G "Visual Studio 9 2008" ^
7678
-D BISON_EXECUTABLE=%BISON% ^
7779
-D GDAL_INCLUDE_DIR=%OSGEO4W_ROOT%\apps\gdal-16\include -D GDAL_LIBRARY=%OSGEO4W_ROOT%\apps\gdal-16\lib\gdal_i.lib ^
7880
-D PYTHON_EXECUTABLE=%OSGEO4W_ROOT%\bin\python.exe ^
79-
-D PYTHON_INCLUDE_DIR=%OSGEO4W_ROOT%\apps\Python25\include -D PYTHON_LIBRARY=%OSGEO4W_ROOT%\apps\Python25\libs\python25.lib ^
81+
-D PYTHON_INCLUDE_PATH=%OSGEO4W_ROOT%\apps\Python25\include ^
82+
-D PYTHON_LIBRARY=%OSGEO4W_ROOT%\apps\Python25\libs\python25.lib ^
8083
-D SIP_BINARY_PATH=%OSGEO4W_ROOT%\apps\Python25\sip.exe ^
8184
-D GRASS_PREFIX=%OSGEO4W_ROOT%\apps\grass\grass-%GRASS_VERSION% ^
8285
-D QT_BINARY_DIR=%OSGEO4W_ROOT%\bin -D QT_LIBRARY_DIR=%OSGEO4W_ROOT%\lib ^
@@ -87,6 +90,9 @@ cmake -G "Visual Studio 9 2008" ^
8790
../../..>>%LOG% 2>&1
8891
if errorlevel 1 goto error
8992

93+
egrep -vq "^(Python not being built|Could not find GRASS)" %LOG%
94+
if errorlevel 1 goto error
95+
9096
:skipcmake
9197

9298
echo ZERO_CHECK: %DATE% %TIME%>>%LOG% 2>&1

0 commit comments

Comments
 (0)