0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

Make including Clang optional

I include libzmq in my cmake project, and I don't want clang-related targets popping up in Visual Studio's solution explorer.
This commit is contained in:
serg06 2020-05-24 18:15:23 -04:00 committed by Luca Boccassi
parent efaeec33fc
commit c89390f0f5

View File

@ -1751,7 +1751,10 @@ if(MSVC_VERSION EQUAL 1600)
endif()
# this cannot be moved, as it does not only contain function/macro definitions
option(ENABLE_CLANG "Include Clang" ON)
if (ENABLE_CLANG)
include(ClangFormat)
endif()
# fixes https://github.com/zeromq/libzmq/issues/3776 The problem is, both libzmq-static libzmq try to use/generate
# precompiled.pch at the same time Add a dependency, so they run in order and so they dont get in each others way TODO