cxx_std_14 causes -std=c++14 to be incorrectly passed to Clang on Windows
Clang on Windows does not understand the -std=c++14
option. However, when using cxx_std_14
as a target requirement, the option gets passed to Clang (and it complains). Since the option is not required anyway for Clang on Windows (they probably just default to using the latest standard, which I think is what MSVC does), I think the fix is to just stop passing -std=c++14
.