mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-27 13:10:37 +00:00
Fix locations of cmake files in side compat shims
In https://github.com/KhronosGroup/glslang/pull/3027, the installed cmake files were stuck into a /cmake subdir but this isn't reflected in these compatibility shims.
This commit is contained in:
parent
c68ce50997
commit
405aba1aa8
@ -49,7 +49,7 @@ if(ENABLE_GLSLANG_INSTALL AND NOT BUILD_SHARED_LIBS)
|
|||||||
message(WARNING \"Using `OGLCompilerTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
message(WARNING \"Using `OGLCompilerTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
||||||
|
|
||||||
if (NOT TARGET glslang::OGLCompiler)
|
if (NOT TARGET glslang::OGLCompiler)
|
||||||
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/glslang-targets.cmake\")
|
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/glslang-targets.cmake\")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(OGLCompiler ALIAS glslang::OGLCompiler)
|
add_library(OGLCompiler ALIAS glslang::OGLCompiler)
|
||||||
|
@ -122,7 +122,7 @@ if(ENABLE_GLSLANG_INSTALL)
|
|||||||
message(WARNING \"Using `SPVRemapperTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
message(WARNING \"Using `SPVRemapperTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
||||||
|
|
||||||
if (NOT TARGET glslang::SPVRemapper)
|
if (NOT TARGET glslang::SPVRemapper)
|
||||||
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/glslang-targets.cmake\")
|
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/glslang-targets.cmake\")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(SPVRemapper ALIAS glslang::SPVRemapper)
|
add_library(SPVRemapper ALIAS glslang::SPVRemapper)
|
||||||
@ -134,7 +134,7 @@ if(ENABLE_GLSLANG_INSTALL)
|
|||||||
message(WARNING \"Using `SPIRVTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
message(WARNING \"Using `SPIRVTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
||||||
|
|
||||||
if (NOT TARGET glslang::SPIRV)
|
if (NOT TARGET glslang::SPIRV)
|
||||||
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/glslang-targets.cmake\")
|
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/glslang-targets.cmake\")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(SPIRV ALIAS glslang::SPIRV)
|
add_library(SPIRV ALIAS glslang::SPIRV)
|
||||||
|
@ -111,7 +111,7 @@ if(ENABLE_GLSLANG_INSTALL)
|
|||||||
message(WARNING \"Using `glslangValidatorTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
message(WARNING \"Using `glslangValidatorTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
||||||
|
|
||||||
if (NOT TARGET glslang::glslangValidator)
|
if (NOT TARGET glslang::glslangValidator)
|
||||||
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/glslang-targets.cmake\")
|
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/glslang-targets.cmake\")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(glslangValidator ALIAS glslang::glslangValidator)
|
add_library(glslangValidator ALIAS glslang::glslangValidator)
|
||||||
@ -126,7 +126,7 @@ if(ENABLE_GLSLANG_INSTALL)
|
|||||||
message(WARNING \"Using `spirv-remapTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
message(WARNING \"Using `spirv-remapTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
||||||
|
|
||||||
if (NOT TARGET glslang::spirv-remap)
|
if (NOT TARGET glslang::spirv-remap)
|
||||||
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/glslang-targets.cmake\")
|
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/glslang-targets.cmake\")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(spirv-remap ALIAS glslang::spirv-remap)
|
add_library(spirv-remap ALIAS glslang::spirv-remap)
|
||||||
@ -141,7 +141,7 @@ if(ENABLE_GLSLANG_INSTALL)
|
|||||||
message(WARNING \"Using `glslang-default-resource-limitsTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
message(WARNING \"Using `glslang-default-resource-limitsTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
||||||
|
|
||||||
if (NOT TARGET glslang::glslang-default-resource-limits)
|
if (NOT TARGET glslang::glslang-default-resource-limits)
|
||||||
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/glslang-targets.cmake\")
|
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/glslang-targets.cmake\")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(glslang-default-resource-limits ALIAS glslang::glslang-default-resource-limits)
|
add_library(glslang-default-resource-limits ALIAS glslang::glslang-default-resource-limits)
|
||||||
|
@ -212,7 +212,7 @@ if(ENABLE_GLSLANG_INSTALL)
|
|||||||
message(WARNING \"Using `glslangTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
message(WARNING \"Using `glslangTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
||||||
|
|
||||||
if (NOT TARGET glslang::glslang)
|
if (NOT TARGET glslang::glslang)
|
||||||
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/glslang-targets.cmake\")
|
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/glslang-targets.cmake\")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${BUILD_SHARED_LIBS})
|
if(${BUILD_SHARED_LIBS})
|
||||||
|
@ -60,7 +60,7 @@ if(ENABLE_GLSLANG_INSTALL AND NOT BUILD_SHARED_LIBS)
|
|||||||
message(WARNING \"Using `OSDependentTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
message(WARNING \"Using `OSDependentTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
||||||
|
|
||||||
if (NOT TARGET glslang::OSDependent)
|
if (NOT TARGET glslang::OSDependent)
|
||||||
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/glslang-targets.cmake\")
|
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/glslang-targets.cmake\")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(OSDependent ALIAS glslang::OSDependent)
|
add_library(OSDependent ALIAS glslang::OSDependent)
|
||||||
|
@ -55,7 +55,7 @@ if(ENABLE_GLSLANG_INSTALL)
|
|||||||
message(WARNING \"Using `OSDependentTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
message(WARNING \"Using `OSDependentTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
||||||
|
|
||||||
if (NOT TARGET glslang::OSDependent)
|
if (NOT TARGET glslang::OSDependent)
|
||||||
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/glslang-targets.cmake\")
|
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/glslang-targets.cmake\")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(OSDependent ALIAS glslang::OSDependent)
|
add_library(OSDependent ALIAS glslang::OSDependent)
|
||||||
|
@ -76,7 +76,7 @@ if(BUILD_TESTING)
|
|||||||
message(WARNING \"Using `glslangtestsTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
message(WARNING \"Using `glslangtestsTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
||||||
|
|
||||||
if (NOT TARGET glslang::glslangtests)
|
if (NOT TARGET glslang::glslangtests)
|
||||||
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/glslang-targets.cmake\")
|
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/glslang-targets.cmake\")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(glslangtests ALIAS glslang::glslangtests)
|
add_library(glslangtests ALIAS glslang::glslangtests)
|
||||||
|
@ -52,7 +52,7 @@ if(ENABLE_GLSLANG_INSTALL)
|
|||||||
message(WARNING \"Using `HLSLTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
message(WARNING \"Using `HLSLTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
|
||||||
|
|
||||||
if (NOT TARGET glslang::HLSL)
|
if (NOT TARGET glslang::HLSL)
|
||||||
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/glslang-targets.cmake\")
|
include(\"\${CMAKE_CURRENT_LIST_DIR}/../../${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/glslang-targets.cmake\")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(HLSL ALIAS glslang::HLSL)
|
add_library(HLSL ALIAS glslang::HLSL)
|
||||||
|
Loading…
Reference in New Issue
Block a user