lloyd / yajl

A fast streaming JSON parsing library in C.
http://lloyd.github.com/yajl
ISC License
2.15k stars 435 forks source link

Guard VS configuration in CMake file with `MSVC` #228

Open giordano opened 4 years ago

giordano commented 4 years ago

The CMake file is implicitly assuming that Microsoft Visual Studio is the only compiler for Windows, which is of course false. The Microsoft Visual Studio-specific configuration should be guarded with MSVC. This change makes it possible to build YAJL with MinGW for example, see this patch in the MINGW-packages repository.