Add aliases for the public libraries
This makes things consistent between when glslang is installed and imported versus when it's included as nested CMake project. You can now use `glslang::glslang` in both cases instead of needing the non-namespaced version sometimes and the namespaced one other times. Resolves one of the problems discussed in https://github.com/KhronosGroup/glslang/issues/3509
This commit is contained in:
parent
02263efcd6
commit
a92c61f845
2 changed files with 4 additions and 0 deletions
|
|
@ -79,6 +79,7 @@ set(PUBLIC_HEADERS
|
|||
SPVRemapper.h)
|
||||
|
||||
add_library(SPIRV ${LIB_TYPE} ${SOURCES} ${HEADERS})
|
||||
add_library(glslang::SPIRV ALIAS SPIRV)
|
||||
set_target_properties(SPIRV PROPERTIES
|
||||
FOLDER glslang
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
|
|
@ -92,6 +93,7 @@ glslang_add_build_info_dependency(SPIRV)
|
|||
|
||||
if (ENABLE_SPVREMAPPER)
|
||||
add_library(SPVRemapper ${LIB_TYPE} ${SPVREMAP_SOURCES} ${SPVREMAP_HEADERS})
|
||||
add_library(glslang::SPVRemapper ALIAS SPVRemapper)
|
||||
set_target_properties(SPVRemapper PROPERTIES
|
||||
FOLDER glslang
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue