From 0386513a2d59fefe448f4fc8742455ce1fc152ab Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sun, 25 Sep 2022 22:27:06 +0100 Subject: [PATCH] Export to other projects cmake as sol2::sol2 Fix #1304 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 177fa298..026275ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,6 +120,7 @@ if(SOL2_ENABLE_INSTALL) EXPORT sol2) install(EXPORT sol2 + NAMESPACE sol2:: FILE sol2-targets.cmake DESTINATION "${CMAKE_INSTALL_DATADIR}/cmake/sol2")