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")