Skip to content
Permalink
Browse files

remove ENABLE_TESTS definition

this was causing a complete rebuild when you enabled/disabled tests
  • Loading branch information
3nids committed Nov 14, 2018
1 parent 7e5a6a2 commit df422ccdd18bad7d135b5cccfaefb172440c4bcf
Showing with 0 additions and 7 deletions.
  1. +0 −1 CMakeLists.txt
  2. +0 −4 src/core/qgsmultirenderchecker.cpp
  3. +0 −2 src/core/qgsmultirenderchecker.h
@@ -435,7 +435,6 @@ SET(QML_IMPORT_PATH "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}" CACHE PATH "QML director
SET (ENABLE_TESTS TRUE CACHE BOOL "Build unit tests?")
IF (ENABLE_TESTS)
SET( QT_USE_QTTEST TRUE )
ADD_DEFINITIONS(-DENABLE_TESTS)
ENABLE_TESTING()
# Adds some testing specific build targets e.g. make Experimental
INCLUDE(Dart)
@@ -99,8 +99,6 @@ QString QgsMultiRenderChecker::controlImagePath() const
return myControlImageDir;
}

#ifdef ENABLE_TESTS

//
// QgsLayoutChecker
//
@@ -171,5 +169,3 @@ bool QgsLayoutChecker::testLayout( QString &checkedReport, int page, int pixelDi


///@endcond

#endif
@@ -144,7 +144,6 @@ class CORE_EXPORT QgsMultiRenderChecker
QgsMapSettings mMapSettings;
};

#ifdef ENABLE_TESTS
SIP_FEATURE( TESTS )
SIP_IF_FEATURE( TESTS )

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

SIP_END
#endif


#endif // QGSMULTIRENDERCHECKER_H

0 comments on commit df422cc

Please sign in to comment.
You can’t perform that action at this time.