mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
Merge pull request #3636 from schulzch/cmake-precompiled
[CMake] Add ENABLE_PRECOMPILED option
This commit is contained in:
commit
56ace6d03f
@ -1080,7 +1080,8 @@ if(ZMQ_BUILD_FRAMEWORK)
|
||||
COMMENT "Perf tools")
|
||||
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
|
||||
foreach(source ${sources})
|
||||
# C and C++ can not use the same precompiled header
|
||||
|
Loading…
x
Reference in New Issue
Block a user