mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Add Microsoft.GSL::GSL alias for GSL
This ensures that dependents can be agnostic about whether GSL was added via `add_subdirectory` or `find_package`
This commit is contained in:
parent
886fc95142
commit
9c0c6b246c
@ -92,6 +92,10 @@ install(
|
|||||||
install(EXPORT Microsoft.GSLConfig NAMESPACE Microsoft.GSL:: DESTINATION share/Microsoft.GSL/cmake)
|
install(EXPORT Microsoft.GSLConfig NAMESPACE Microsoft.GSL:: DESTINATION share/Microsoft.GSL/cmake)
|
||||||
export(TARGETS GSL NAMESPACE Microsoft.GSL:: FILE Microsoft.GSLConfig.cmake)
|
export(TARGETS GSL NAMESPACE Microsoft.GSL:: FILE Microsoft.GSLConfig.cmake)
|
||||||
|
|
||||||
|
# Add Microsoft.GSL::GSL alias for GSL so that dependents can be agnostic about
|
||||||
|
# whether GSL was added via `add_subdirectory` or `find_package`
|
||||||
|
add_library(Microsoft.GSL::GSL ALIAS GSL)
|
||||||
|
|
||||||
option(GSL_TEST "Generate tests." ${GSL_STANDALONE_PROJECT})
|
option(GSL_TEST "Generate tests." ${GSL_STANDALONE_PROJECT})
|
||||||
if (GSL_TEST)
|
if (GSL_TEST)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
Loading…
Reference in New Issue
Block a user