Skip to content

Commit df422cc

Browse files
committed
remove ENABLE_TESTS definition
this was causing a complete rebuild when you enabled/disabled tests
1 parent 7e5a6a2 commit df422cc

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,6 @@ SET(QML_IMPORT_PATH "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}" CACHE PATH "QML director
435435
SET (ENABLE_TESTS TRUE CACHE BOOL "Build unit tests?")
436436
IF (ENABLE_TESTS)
437437
SET( QT_USE_QTTEST TRUE )
438-
ADD_DEFINITIONS(-DENABLE_TESTS)
439438
ENABLE_TESTING()
440439
# Adds some testing specific build targets e.g. make Experimental
441440
INCLUDE(Dart)

src/core/qgsmultirenderchecker.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ QString QgsMultiRenderChecker::controlImagePath() const
9999
return myControlImageDir;
100100
}
101101

102-
#ifdef ENABLE_TESTS
103-
104102
//
105103
// QgsLayoutChecker
106104
//
@@ -171,5 +169,3 @@ bool QgsLayoutChecker::testLayout( QString &checkedReport, int page, int pixelDi
171169

172170

173171
///@endcond
174-
175-
#endif

src/core/qgsmultirenderchecker.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ class CORE_EXPORT QgsMultiRenderChecker
144144
QgsMapSettings mMapSettings;
145145
};
146146

147-
#ifdef ENABLE_TESTS
148147
SIP_FEATURE( TESTS )
149148
SIP_IF_FEATURE( TESTS )
150149

@@ -197,7 +196,6 @@ class CORE_EXPORT QgsLayoutChecker : public QgsMultiRenderChecker
197196
///@endcond
198197

199198
SIP_END
200-
#endif
201199

202200

203201
#endif // QGSMULTIRENDERCHECKER_H

0 commit comments

Comments
 (0)