From aeb65efadae47bce55308e721d73352465b7d689 Mon Sep 17 00:00:00 2001 From: Vitaly Zaitsev Date: Fri, 17 Apr 2020 11:47:23 +0200 Subject: [PATCH] Fixed installation on GNU/Linux distributions. Signed-off-by: Vitaly Zaitsev --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 57135b1..6a12c33 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,7 +89,7 @@ install( DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ) # Make library importable by other projects -install(EXPORT Microsoft.GSLConfig NAMESPACE Microsoft.GSL:: DESTINATION share/Microsoft.GSL/cmake) +install(EXPORT Microsoft.GSLConfig NAMESPACE Microsoft.GSL:: DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake/Microsoft.GSL) export(TARGETS GSL NAMESPACE Microsoft.GSL:: FILE Microsoft.GSLConfig.cmake) # Add Microsoft.GSL::GSL alias for GSL so that dependents can be agnostic about