Skip to content

Commit aabfd04

Browse files
authored
Merge pull request #1 from VestniK/topic-cmake-project-5
Add export from buildtree
2 parents 879f610 + 0dae45d commit aabfd04

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

asio/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ install(EXPORT asio-targets
3333
DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
3434
NAMESPACE asio::)
3535
install(FILES asio-config.cmake DESTINATION ${CMAKE_INSTALL_CMAKEDIR})
36+
37+
# Buildtree export
38+
configure_file(asio-config.cmake ${CMAKE_CURRENT_BINARY_DIR}/asio-config.cmake COPYONLY)
39+
export(EXPORT asio-targets NAMESPACE asio:: FILE ${CMAKE_CURRENT_BINARY_DIR}/asio-targets.cmake)

0 commit comments

Comments
 (0)