File tree Expand file tree Collapse file tree 10 files changed +18
-19
lines changed
python/ext-libs/pyspatialite Expand file tree Collapse file tree 10 files changed +18
-19
lines changed Original file line number Diff line number Diff line change @@ -581,7 +581,6 @@ IF (WITH_CORE)
581
581
#hoops to escape compiler directives then
582
582
IF (COMMAND cmake_policy )
583
583
cmake_policy (SET CMP0003 NEW )
584
- cmake_policy (SET CMP0005 OLD )
585
584
IF (NOT "${CMAKE_VERSION} " VERSION_LESS "3.3" )
586
585
cmake_policy (SET CMP0063 NEW )
587
586
ENDIF (NOT "${CMAKE_VERSION} " VERSION_LESS "3.3" )
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ ELSE(WIN32)
107
107
# MESSAGE("DBG GSL_LINK_DIRECTORIES=${GSL_LINK_DIRECTORIES}")
108
108
# MESSAGE("DBG GSL_EXE_LINKER_FLAGS=${GSL_EXE_LINKER_FLAGS}")
109
109
110
- # ADD_DEFINITIONS(" -DHAVE_GSL" )
110
+ # ADD_DEFINITIONS(-DHAVE_GSL)
111
111
# SET(GSL_DEFINITIONS "-DHAVE_GSL")
112
112
MARK_AS_ADVANCED (
113
113
GSL_CXX_FLAGS
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ ELSE(MSVC)
26
26
SET_SOURCE_FILES_PROPERTIES (${PYSPATIALITE_SRC} PROPERTIES COMPILE_FLAGS -w )
27
27
ENDIF (MSVC )
28
28
29
- ADD_DEFINITIONS (-DMODULE_NAME=\\\ " spatialite.dbapi2\\\ " )
29
+ ADD_DEFINITIONS (-DMODULE_NAME= "spatialite.dbapi2" )
30
30
31
31
IF (CYGWIN OR APPLE )
32
32
ADD_LIBRARY (pyspatialite MODULE ${PYSPATIALITE_SRC} )
Original file line number Diff line number Diff line change @@ -1126,13 +1126,13 @@ INCLUDE_DIRECTORIES(SYSTEM
1126
1126
1127
1127
#for PAL classes
1128
1128
IF (WIN32 )
1129
- ADD_DEFINITIONS (" -D_HAVE_WINDOWS_H_" )
1129
+ ADD_DEFINITIONS (-D_HAVE_WINDOWS_H_ )
1130
1130
ELSE (WIN32 )
1131
- ADD_DEFINITIONS (" -D_HAVE_PTHREAD_" )
1131
+ ADD_DEFINITIONS (-D_HAVE_PTHREAD_ )
1132
1132
ENDIF (WIN32 )
1133
1133
1134
1134
# Test data dir for QgsRenderChecker
1135
- ADD_DEFINITIONS (-DTEST_DATA_DIR= "\\ " ${TEST_DATA_DIR} \\ " " )
1135
+ ADD_DEFINITIONS (-DTEST_DATA_DIR= "${TEST_DATA_DIR} " )
1136
1136
1137
1137
#############################################################
1138
1138
# qgis_core library
Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ SET (GLOBE_PLUGIN_RCCS globe_plugin.qrc)
43
43
# Build
44
44
45
45
IF (WIN32 )
46
- ADD_DEFINITIONS (" \" -DGLOBE_EXPORT=${DLLEXPORT} \" " )
46
+ ADD_DEFINITIONS (-DGLOBE_EXPORT=${DLLEXPORT} )
47
47
ELSE (WIN32 )
48
- ADD_DEFINITIONS (" -DGLOBE_EXPORT=" )
48
+ ADD_DEFINITIONS (-DGLOBE_EXPORT= )
49
49
ENDIF (WIN32 )
50
50
51
51
QT5_WRAP_UI (GLOBE_PLUGIN_UIS_H ${GLOBE_PLUGIN_UIS} )
Original file line number Diff line number Diff line change 1
1
ADD_SUBDIRECTORY (modules )
2
2
ADD_SUBDIRECTORY (scripts )
3
3
4
- #ADD_DEFINITIONS(-DGRASS_BASE=\\\ "${GRASS_PREFIX}\\\ ")
4
+ #ADD_DEFINITIONS(-DGRASS_BASE="${GRASS_PREFIX}")
5
5
if (HAVE_OPENPTY )
6
6
ADD_DEFINITIONS (-DHAVE_OPENPTY )
7
7
ENDIF (HAVE_OPENPTY )
@@ -13,7 +13,7 @@ ELSE (WIN32)
13
13
ENDIF (WIN32 )
14
14
15
15
# GRASS Direct disabled in 2.0
16
- #ADD_DEFINITIONS(" -DGRASS_DIRECT" )
16
+ #ADD_DEFINITIONS(-DGRASS_DIRECT)
17
17
18
18
########################################################
19
19
# Files
@@ -133,10 +133,10 @@ IF(NOT WIN32)
133
133
134
134
135
135
SET (KB_LAYOUT_DIR "${QGIS_DATA_DIR} /grass/qtermwidget/kb-layouts" )
136
- ADD_DEFINITIONS (-DKB_LAYOUT_DIR=\\\ "${CMAKE_INSTALL_PREFIX} /${KB_LAYOUT_DIR} \\\ " )
136
+ ADD_DEFINITIONS (-DKB_LAYOUT_DIR= "${CMAKE_INSTALL_PREFIX} /${KB_LAYOUT_DIR} " )
137
137
138
138
SET (COLORSCHEMES_DIR "${QGIS_DATA_DIR} /grass/qtermwidget/color-schemes" )
139
- ADD_DEFINITIONS (-DCOLORSCHEMES_DIR=\\\ "${CMAKE_INSTALL_PREFIX} /${COLORSCHEMES_DIR} \\\ " )
139
+ ADD_DEFINITIONS (-DCOLORSCHEMES_DIR= "${CMAKE_INSTALL_PREFIX} /${COLORSCHEMES_DIR} " )
140
140
141
141
ENDIF (NOT WIN32 )
142
142
Original file line number Diff line number Diff line change 1
- #ADD_DEFINITIONS(-DGRASS_BASE=\\\ "${GRASS_PREFIX}\\\ ")
1
+ #ADD_DEFINITIONS(-DGRASS_BASE="${GRASS_PREFIX}")
2
2
########################################################
3
3
# Build
4
4
Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ IF (ENABLE_TESTS)
5
5
# This define is used for tests that need to locate the test
6
6
# data under tests/testdata in the qgis source tree.
7
7
# the TEST_DATA_DIR variable is set in the top level CMakeLists.txt
8
- ADD_DEFINITIONS (-DTEST_DATA_DIR= "\\ " ${TEST_DATA_DIR} \\ " " )
8
+ ADD_DEFINITIONS (-DTEST_DATA_DIR= "${TEST_DATA_DIR} " )
9
9
10
- ADD_DEFINITIONS (-DINSTALL_PREFIX= "\\ " ${CMAKE_INSTALL_PREFIX} \\ " " )
10
+ ADD_DEFINITIONS (-DINSTALL_PREFIX= "${CMAKE_INSTALL_PREFIX} " )
11
11
12
12
# libraries
13
13
# enable postgresql tests
14
14
SET (ENABLE_PGTEST FALSE CACHE BOOL "Enable PostgreSQL provider tests" )
15
15
IF ( ENABLE_PGTEST )
16
- ADD_DEFINITIONS ( " -DENABLE_PGTEST" )
16
+ ADD_DEFINITIONS (-DENABLE_PGTEST )
17
17
ENDIF ()
18
18
19
19
# because of htonl
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ ENDIF(APPLE)
28
28
# This define is used for tests that need to locate the test
29
29
# data under tests/testdata in the qgis source tree.
30
30
# the TEST_DATA_DIR variable is set in the top level CMakeLists.txt
31
- ADD_DEFINITIONS (-DTEST_DATA_DIR= "\\ " ${TEST_DATA_DIR} \\ " " )
31
+ ADD_DEFINITIONS (-DTEST_DATA_DIR= "${TEST_DATA_DIR} " )
32
32
33
- ADD_DEFINITIONS (-DINSTALL_PREFIX= "\\ " ${CMAKE_INSTALL_PREFIX} \\ " " )
33
+ ADD_DEFINITIONS (-DINSTALL_PREFIX= "${CMAKE_INSTALL_PREFIX} " )
34
34
35
35
#############################################################
36
36
# libraries
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ ADD_QGIS_TEST(wcsprovidertest testqgswcsprovider.cpp)
59
59
# Temporarily set to old version until server is reconfigured
60
60
#SET(TEST_SERVER_URL "http://wcs.qgis.org/${COMPLETE_VERSION}")
61
61
SET (TEST_SERVER_URL "http://wcs.qgis.org/1.9.0" )
62
- #ADD_DEFINITIONS(-DTEST_SERVER_URL="\\" ${TEST_SERVER_URL}\\" ")
62
+ #ADD_DEFINITIONS(-DTEST_SERVER_URL="${TEST_SERVER_URL}")
63
63
SET_TARGET_PROPERTIES (qgis_wcsprovidertest PROPERTIES
64
64
COMPILE_FLAGS "-DTEST_SERVER_URL=\\\" ${TEST_SERVER_URL} \\\" "
65
65
)
You can’t perform that action at this time.
0 commit comments