Skip to content

Conversation

giordano
Copy link

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.

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`](https://cmake.org/cmake/help/latest/variable/MSVC.html).  This change makes it possible to build YAJL with MinGW for example, see [this patch](https://github.com/msys2/MINGW-packages/blob/11cf0665cfd6a4cf70fea61f60374a5dc07ee5f3/mingw-w64-yajl/01-fix-compiler.patch) in the MINGW-packages repository.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant