Skip to content

Commit 9c30ea9

Browse files
author
jef
committedAug 18, 2009
more osgeo4w tweaks
git-svn-id: http://svn.osgeo.org/qgis/trunk@11431 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 6ddd6b7 commit 9c30ea9

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed
 

‎CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ FIND_PROGRAM(QT_LRELEASE_EXECUTABLE
187187
# enable warnings
188188

189189
IF (PEDANTIC)
190-
MESSAGE ("-- Pedantic compiler settings enabled")
190+
MESSAGE (STATUS "Pedantic compiler settings enabled")
191191
IF(MSVC)
192192
ADD_DEFINITIONS( /W4 )
193193

@@ -204,10 +204,10 @@ IF (PEDANTIC)
204204
ENDIF (MSVC)
205205
ENDIF (PEDANTIC)
206206

207-
IF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_CONFIGURATION_TYPE MATCHES RelWithDebInfo)
208-
MESSAGE ("-- Debug output enabled")
207+
IF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
208+
MESSAGE (STATUS "Debug output enabled")
209209
ADD_DEFINITIONS(-DQGISDEBUG=1)
210-
ENDIF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_CONFIGURATION_TYPE MATCHES RelWithDebInfo)
210+
ENDIF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
211211

212212
#############################################################
213213
# platform specific stuff
@@ -233,10 +233,10 @@ IF (WIN32)
233233
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
234234
ADD_DEFINITIONS(-D_CRT_NONSTDC_NO_WARNINGS)
235235

236-
IF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_CONFIGURATION_TYPE MATCHES RelWithDebInfo)
237-
MESSAGE ("-- Generating browse files")
236+
IF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
237+
MESSAGE (STATUS "Generating browse files")
238238
ADD_DEFINITIONS( /FR )
239-
ENDIF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_CONFIGURATION_TYPE MATCHES RelWithDebInfo)
239+
ENDIF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
240240

241241
IF (INSTALL_DEPS)
242242
INSTALL(DIRECTORY ${INSTALL_DEPS} DESTINATION .)
@@ -365,7 +365,7 @@ SUBDIRS(src doc images resources i18n)
365365
IF (HAVE_PYTHON AND WITH_BINDINGS)
366366
SUBDIRS (python)
367367
ELSE (HAVE_PYTHON AND WITH_BINDINGS)
368-
MESSAGE ("Python not being built")
368+
MESSAGE (STATUS "Python not being built")
369369
ENDIF (HAVE_PYTHON AND WITH_BINDINGS)
370370

371371
IF (ENABLE_TESTS)

‎ms-windows/osgeo4w/package.cmd

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
@echo off
22
set GRASS_VERSION=6.4.0svn
33

4+
set BUILDDIR=%CD%\build
5+
REM set BUILDDIR=%TEMP%\qgis_unstable
6+
set LOG=%BUILDDIR%\build.log
7+
8+
if not exist "%BUILDDIR%" mkdir %BUILDDIR%
9+
if not exist "%BUILDDIR%" goto error
10+
411
set VERSION=%1
512
set PACKAGE=%2
613
if "%VERSION%"=="" goto error
@@ -17,9 +24,6 @@ if not exist "%OSGEO4W_ROOT%\bin\o4w_env.bat" goto error
1724

1825
call "%OSGEO4W_ROOT%\bin\o4w_env.bat"
1926

20-
set BUILDDIR=%CD%\build
21-
REM set BUILDDIR=%TEMP%\qgis_unstable
22-
2327
set O4W_ROOT=%OSGEO4W_ROOT:\=/%
2428
set LIB_DIR=%O4W_ROOT%
2529

@@ -33,8 +37,6 @@ PROMPT qgis%VERSION%$g
3337
set BUILDCONF=RelWithDebInfo
3438
REM set BUILDCONF=Release
3539

36-
if not exist "%BUILDDIR%" mkdir %BUILDDIR%
37-
if not exist "%BUILDDIR%" goto error
3840

3941
cd ..\..
4042
set SRCDIR=%CD%
@@ -67,8 +69,6 @@ if exist build.tmp del build.tmp
6769
goto error
6870

6971
:build
70-
set LOG=%BUILDDIR%\build.log
71-
7272
echo Logging to %LOG%
7373
echo BEGIN: %DATE% %TIME%>>%LOG% 2>&1
7474
if errorlevel 1 goto error
@@ -81,11 +81,11 @@ echo CMAKE: %DATE% %TIME%>>%LOG% 2>&1
8181
if errorlevel 1 goto error
8282

8383
cmake -G "Visual Studio 9 2008" ^
84-
-D PEDANTIC=TRUE ^
85-
-D WITH_SPATIALITE=TRUE ^
86-
-D WITH_INTERNAL_SPATIALITE=TRUE ^
87-
-D CMAKE_CONFIGURATION_TYPE=%BUILDCONF% ^
88-
-D CMAKE_BUILDCONFIGURATION_TYPES=%BUILDCONF% ^
84+
-D PEDANTIC=TRUE ^
85+
-D WITH_SPATIALITE=TRUE ^
86+
-D WITH_INTERNAL_SPATIALITE=TRUE ^
87+
-D CMAKE_BUILD_TYPE=%BUILDCONF% ^
88+
-D CMAKE_CONFIGURATION_TYPES=%BUILDCONF% ^
8989
-D GDAL_INCLUDE_DIR=%O4W_ROOT%/apps/gdal-16/include ^
9090
-D GDAL_LIBRARY=%O4W_ROOT%/apps/gdal-16/lib/gdal_i.lib ^
9191
-D PYTHON_EXECUTABLE=%O4W_ROOT%/bin/python.exe ^

0 commit comments

Comments
 (0)
Please sign in to comment.