mirror of
https://github.com/google/flatbuffers.git
synced 2026-08-03 21:21:53 +00:00
5f6672be44
Introduce a MSVC_LIKE variable in the CMake scripts, set that variable to true only if the compiler is either MSVC or tries to emulate the MSVC command line, and test that variable when setting compiler arguments. Tested with cmake .. -G Ninja -DCMAKE_C_COMPILER:PATH="clang-cl.exe" -DCMAKE_CXX_COMPILER:PATH="clang-cl.exe" -DFLATBUFFERS_BUILD_TESTS=OFF -DFLATBUFFERS_BUILD_CPP17=ON Co-authored-by: Kaiyi Li <kaiyili@google.com>