mirror of
https://github.com/microsoft/GSL.git
synced 2025-02-07 10:56:53 -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()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS GSL EXPORT GSLConfig
|
install(TARGETS GSL EXPORT Microsoft.GSLConfig
|
||||||
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||||
)
|
)
|
||||||
install(
|
install(
|
||||||
@ -82,8 +82,8 @@ install(
|
|||||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||||
)
|
)
|
||||||
# Make library importable by other projects
|
# Make library importable by other projects
|
||||||
install(EXPORT GSLConfig DESTINATION share/GSL/cmake)
|
install(EXPORT Microsoft.GSLConfig NAMESPACE Microsoft.GSL:: DESTINATION share/Microsoft.GSL/cmake)
|
||||||
export(TARGETS GSL FILE GSLConfig.cmake)
|
export(TARGETS GSL NAMESPACE Microsoft.GSL:: FILE GSLConfig.cmake)
|
||||||
|
|
||||||
option(GSL_TEST "Generate tests." ${GSL_STANDALONE_PROJECT})
|
option(GSL_TEST "Generate tests." ${GSL_STANDALONE_PROJECT})
|
||||||
if (GSL_TEST)
|
if (GSL_TEST)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user