mirror of
https://github.com/microsoft/GSL.git
synced 2025-01-30 23:34:59 -05:00
Export target GSL in namespace Microsoft.GSL
This is to avoid conflicts with GNU Scientific Library which also has an exported target named GSL.
This commit is contained in:
parent
9e1645b990
commit
e2b57d16f9
@ -74,7 +74,7 @@ if ((CMAKE_VERSION GREATER 3.7.9) OR (CMAKE_VERSION EQUAL 3.7.9))
|
||||
endif()
|
||||
endif()
|
||||
|
||||
install(TARGETS GSL EXPORT GSLConfig
|
||||
install(TARGETS GSL EXPORT Microsoft.GSLConfig
|
||||
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
)
|
||||
install(
|
||||
@ -82,8 +82,8 @@ install(
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
)
|
||||
# Make library importable by other projects
|
||||
install(EXPORT GSLConfig DESTINATION share/GSL/cmake)
|
||||
export(TARGETS GSL FILE GSLConfig.cmake)
|
||||
install(EXPORT Microsoft.GSLConfig NAMESPACE Microsoft.GSL:: DESTINATION share/Microsoft.GSL/cmake)
|
||||
export(TARGETS GSL NAMESPACE Microsoft.GSL:: FILE GSLConfig.cmake)
|
||||
|
||||
option(GSL_TEST "Generate tests." ${GSL_STANDALONE_PROJECT})
|
||||
if (GSL_TEST)
|
||||
|
Loading…
Reference in New Issue
Block a user