0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 07:31:03 +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() endif()
# this cannot be moved, as it does not only contain function/macro definitions # this cannot be moved, as it does not only contain function/macro definitions
include(ClangFormat) 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 # 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 # precompiled.pch at the same time Add a dependency, so they run in order and so they dont get in each others way TODO