Skip to content

Commit bbaf61d

Browse files
author
wonder
committedNov 2, 2009
merge from trunk r11150:11200
git-svn-id: http://svn.osgeo.org/qgis/branches/symbology-ng-branch@11883 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

91 files changed

+2634
-1834
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+2634
-1834
lines changed
 

‎CMakeLists.txt

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,10 @@ IF (PEDANTIC)
201201
ENDIF (MSVC)
202202
ENDIF (PEDANTIC)
203203

204-
IF (CMAKE_BUILD_TYPE MATCHES Debug)
204+
IF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_CONFIGURATION_TYPE MATCHES RelWithDebInfo)
205+
MESSAGE ("-- Debug output enabled")
205206
ADD_DEFINITIONS(-DQGISDEBUG=1)
206-
ENDIF (CMAKE_BUILD_TYPE MATCHES Debug)
207+
ENDIF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_CONFIGURATION_TYPE MATCHES RelWithDebInfo)
207208

208209
#############################################################
209210
# platform specific stuff
@@ -215,18 +216,10 @@ IF (WIN32)
215216
SET (DEFAULT_INCLUDE_SUBDIR include)
216217

217218
IF (MSVC)
218-
# Python parts need to be build with nmake not vcexpress
219-
# if you dont add this clause, extra blank msvc projects
220-
# will pop up mid way through the build process and block
221-
# the build, plus the python bindings wont build correctly
222-
SET (CMAKE_MAKE_PROGRAM nmake)
223219
SET (DEFAULT_BIN_SUBDIR bin)
224220
# put all the build products into a single directory
225221
# under build (doesnt affect install target) to make for
226222
# easier debugging.
227-
# SET(OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/bin)
228-
# SET(EXECUTABLE_OUTPUT_PATH ${OUTPUT_DIR})
229-
# SET(LIBRARY_OUTPUT_PATH ${OUTPUT_DIR})
230223
#tell msvc compiler to use main instead of winmain as the
231224
#application entry point
232225
#SET(QT_USE_QTMAIN TRUE)
@@ -236,18 +229,17 @@ IF (WIN32)
236229
# Turn off deprecation warnings
237230
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
238231
ADD_DEFINITIONS(-D_CRT_NONSTDC_NO_WARNINGS)
239-
# Some file access stuff not defined in native win32
240-
# environment
241-
ADD_DEFINITIONS(-DF_OK=0)
242-
ADD_DEFINITIONS(-DX_OK=1)
243-
ADD_DEFINITIONS(-DW_OK=2)
244-
ADD_DEFINITIONS(-DR_OK=4)
245232

246-
ADD_DEFINITIONS(-DQGISDEBUG=1)
247-
248-
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/win_build/vcdeps/. DESTINATION .)
233+
IF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_CONFIGURATION_TYPE MATCHES RelWithDebInfo)
234+
MESSAGE ("-- Generating browse files")
235+
ADD_DEFINITIONS( /FR )
236+
ENDIF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_CONFIGURATION_TYPE MATCHES RelWithDebInfo)
237+
238+
IF (INSTALL_DEPS)
239+
INSTALL(DIRECTORY ${INSTALL_DEPS} DESTINATION .)
240+
ENDIF (INSTALL_DEPS)
249241
ELSE(MSVC)
250-
SET (DEFAULT_BIN_SUBDIR .)
242+
SET (DEFAULT_BIN_SUBDIR .)
251243
ENDIF(MSVC)
252244
ELSE (WIN32)
253245

‎cmake/FindGRASS.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ MACRO (CHECK_GRASS G_PREFIX)
1111

1212
FOREACH (LIB ${GRASS_LIB_NAMES})
1313
SET(LIB_PATH NOTFOUND)
14-
FIND_LIBRARY(LIB_PATH grass_${LIB} PATHS ${G_PREFIX}/lib)
14+
FIND_LIBRARY(LIB_PATH NAMES grass_${LIB} PATHS ${G_PREFIX}/lib NO_DEFAULT_PATH)
1515

1616
IF (LIB_PATH)
1717
IF (NOT GRASS_LIBRARIES STREQUAL NOTFOUND)

0 commit comments

Comments
 (0)
Please sign in to comment.