Skip to content

Commit

Permalink
Don't try to build genericspatialindex test on windows
Browse files Browse the repository at this point in the history
Can't find the magic formula to make msvc happy here!
  • Loading branch information
nyalldawson committed Dec 10, 2019
1 parent 6ab2658 commit 25988ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/src/core/CMakeLists.txt
Expand Up @@ -42,6 +42,7 @@ INCLUDE_DIRECTORIES(SYSTEM
${QCA_INCLUDE_DIR}
${QTKEYCHAIN_INCLUDE_DIR}
${SQLITE3_INCLUDE_DIR}
${SPATIALINDEX_INCLUDE_DIR}
)

IF(HAVE_OPENCL)
Expand Down Expand Up @@ -72,6 +73,7 @@ MACRO (ADD_QGIS_TEST TESTSRC)
${PROJ_LIBRARY}
${GEOS_LIBRARY}
${GDAL_LIBRARY}
${SPATIALINDEX_LIBRARY}
qgis_core)
ADD_TEST(${TESTNAME} ${CMAKE_BINARY_DIR}/output/bin/${TESTNAME} -maxwarnings 10000)
ENDMACRO (ADD_QGIS_TEST)
Expand Down
2 changes: 2 additions & 0 deletions tests/src/core/testqgsgenericspatialindex.cpp
Expand Up @@ -58,6 +58,7 @@ void TestQgsGenericSpatialIndex::cleanup()

void TestQgsGenericSpatialIndex::testIndex()
{
#ifndef Q_OS_WIN // MSVC says "NO!!"
QgsGenericSpatialIndex< QgsLabelPosition > index;

QList< QgsLabelPosition * > found;
Expand Down Expand Up @@ -185,6 +186,7 @@ void TestQgsGenericSpatialIndex::testIndex()
return true;
} );
QVERIFY( found.empty() );
#endif
}


Expand Down

0 comments on commit 25988ff

Please sign in to comment.