Commit 5c87e76c authored by Branislav Katreniak's avatar Branislav Katreniak

cmake: copy CapnProtoMacros.cmake to build dir

File CapnProtoConfig.cmake in build directory includes this file.
This change enables consumers to find package CapnProto
in build directory without installation.
parent aeb38e01
......@@ -114,6 +114,8 @@ install(FILES
${CMAKE_CURRENT_BINARY_DIR}/CapnProtoConfigVersion.cmake
DESTINATION ${CONFIG_PACKAGE_LOCATION}
)
#install CapnProtoMacros for CapnProtoConfig.cmake build directory consumers
configure_file(cmake/CapnProtoMacros.cmake CapnProtoMacros.cmake COPYONLY)
if(NOT MSVC) # Don't install pkg-config files when building with MSVC
# Variables for pkg-config files
......
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