cmake: remove generation of deprecated *Targets.cmake files

These files have had a deprecation notice for a few years now and the
cmake find_package mechanism should be used instead.
This commit is contained in:
Arcady Goldmints-Orlov 2024-01-09 16:11:16 -05:00 committed by arcady-lunarg
parent 0f7d3a0776
commit 57d86ab763
5 changed files with 0 additions and 104 deletions

View file

@ -42,16 +42,4 @@ target_link_libraries(OSDependent Threads::Threads)
if(PROJECT_IS_TOP_LEVEL AND NOT BUILD_SHARED_LIBS)
install(TARGETS OSDependent EXPORT glslang-targets)
# Backward compatibility
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/OSDependentTargets.cmake" "
message(WARNING \"Using `OSDependentTargets.cmake` is deprecated: use `find_package(glslang)` to find glslang CMake targets.\")
if (NOT TARGET glslang::OSDependent)
include(\"${CMAKE_INSTALL_FULL_LIBDIR}/cmake/${PROJECT_NAME}/glslang-targets.cmake\")
endif()
add_library(OSDependent ALIAS glslang::OSDependent)
")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/OSDependentTargets.cmake" DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake)
endif()