mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-14 01:37:56 +08:00
Add ENABLE_PRECOMPILED option.
You might want to disable this flag when building with Ninja.
This commit is contained in:
parent
9bb197e030
commit
878f1d51f5
@ -1080,7 +1080,8 @@ if(ZMQ_BUILD_FRAMEWORK)
|
|||||||
COMMENT "Perf tools")
|
COMMENT "Perf tools")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MSVC)
|
option(ENABLE_PRECOMPILED "Enable precompiled headers, if possible" ON)
|
||||||
|
if(MSVC AND ENABLE_PRECOMPILED)
|
||||||
# default for all sources is to use precompiled headers
|
# default for all sources is to use precompiled headers
|
||||||
foreach(source ${sources})
|
foreach(source ${sources})
|
||||||
# C and C++ can not use the same precompiled header
|
# C and C++ can not use the same precompiled header
|
||||||
|
Loading…
x
Reference in New Issue
Block a user