Skip to content

Commit f4fb6bd

Browse files
committed
fix build error when Qt isn't found
Test: build (with and without Qt). Issue: saebyn#30 Signed-off-by: Gluttton <gluttton@ukr.net>
1 parent ef2779f commit f4fb6bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/matrix_test.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ struct TypeHolder
5656
using matrix_type = M <X>;
5757
};
5858

59+
#if QT5_FOUND == 1
5960
template <typename T>
6061
using matrix_qt33 = munkres_cpp::matrix_qt <T, 3, 3>;
62+
#endif
6163

6264
template <typename T> class MunkresTest : public ::testing::Test {};
6365
typedef ::testing::Types <

0 commit comments

Comments
 (0)