Commit 1fa72fde authored by Branislav Katreniak's avatar Branislav Katreniak

cmake: fail on BUILD_TOOLS AND EXTERNAL_CAPNP

Which tools should the build system use in this case?
parent d2f42b89
......@@ -46,6 +46,10 @@ if(CAPNP_LITE AND BUILD_TOOLS)
message(WARNING "Command-line tools will not be built with CAPNP_LITE.")
endif()
if(BUILD_TOOLS AND EXTERNAL_CAPNP)
message(SEND_ERROR "EXTERNAL_CAPNP cannot be set with BUILD_TOOLS.")
endif()
if(MSVC AND NOT CAPNP_LITE)
message(SEND_ERROR "Building with MSVC is only supported with CAPNP_LITE.")
endif()
......
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