FindBoost debug runtime detection fails on windows with Clang compilers
FindBoost currently checks for compiler types when determining debug runtime, as seen here:
if(WIN32 AND Boost_USE_DEBUG_RUNTIME) if("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC" OR "${CMAKE_CXX_COMPILER}" MATCHES "icl" OR "${CMAKE_CXX_COMPILER}" MATCHES "icpc"
This excludes clang on windows when compiler using cmake, with clang or clang-cl, on Win32 platform - preventing debug runtime builds being detected.
Adding
OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
to the check fixes this issue.