c++/infra add boost/variant check to cmake
@@ -35,6 +35,10 @@ if (USE_BOOST)
if (NOT HAVE_BOOST_OPTIONAL_HPP)
message(FATAL_ERROR "Can not find boost/optional.hpp")
endif ()
+ check_include_file_cxx(boost/variant.hpp HAVE_BOOST_VARIANT_HPP)
+ if (NOT HAVE_BOOST_VARIANT_HPP)
+ message(FATAL_ERROR "Can not find boost/variant.hpp")
+ endif ()
endif()
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/gtest/googletest/include)
