Skip boost::variant tests on unsupported compilers and versions of Boost

This commit is contained in:
Dean Moldovan
2017-08-25 21:11:36 +02:00
parent c14c2762f6
commit c40ef612cc
2 changed files with 3 additions and 3 deletions

View File

@@ -114,8 +114,8 @@ if(PYBIND11_TEST_FILES_EIGEN_I GREATER -1)
endif()
endif()
# Optional dependency for some tests
find_package(Boost)
# Optional dependency for some tests (boost::variant is only supported with version >= 1.56)
find_package(Boost 1.56)
# Compile with compiler warnings turned on
function(pybind11_enable_warnings target_name)