Skip to content

Commit

Permalink
remove ENABLE_TESTS definition
Browse files Browse the repository at this point in the history
this was causing a complete rebuild when you enabled/disabled tests
  • Loading branch information
3nids committed Nov 14, 2018
1 parent ad774e9 commit 0f9084c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,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)
Expand Down
4 changes: 0 additions & 4 deletions src/core/qgsmultirenderchecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ QString QgsMultiRenderChecker::controlImagePath() const
return myControlImageDir;
}

#ifdef ENABLE_TESTS

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


///@endcond

#endif
2 changes: 0 additions & 2 deletions src/core/qgsmultirenderchecker.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ class CORE_EXPORT QgsMultiRenderChecker
QgsMapSettings mMapSettings;
};

#ifdef ENABLE_TESTS
SIP_FEATURE( TESTS )
SIP_IF_FEATURE( TESTS )

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

SIP_END
#endif


#endif // QGSMULTIRENDERCHECKER_H

0 comments on commit 0f9084c

Please sign in to comment.