Unverified Commit 56ace6d0 authored by Luca Boccassi's avatar Luca Boccassi Committed by GitHub

Merge pull request #3636 from schulzch/cmake-precompiled

[CMake] Add ENABLE_PRECOMPILED option
parents 9bb197e0 878f1d51
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment