From 072cb60bb63e9f3d1c42fa18adcebb77bb4aa6ae Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 5 Dec 2024 17:45:24 +0800 Subject: Remove duplicate call to install() for libslang (#5767) Closes https://github.com/shader-slang/slang/issues/5764 Also mention other installed targets in cmake config --- CMakeLists.txt | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index be874a073..475780764 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -365,15 +365,12 @@ configure_package_config_file( INSTALL_DESTINATION cmake ) -# Conditionally handle the case for Emscripten where slang does not create linkable -# targets. In this case do not export the targets. Otherwise, just export the -# slang target, as this is the library that is required to use the compiler. This possibly -# should later be expanded to include slang-rhi targets if some program intends to use them, -# but possibly wait for a future request before expanding this export set. +# Conditionally handle the case for Emscripten where slang does not create +# linkable targets. In this case do not export the targets. Otherwise, just +# export the slang targets. if(NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten") - install(TARGETS slang EXPORT SlangExportTarget) install( - EXPORT SlangExportTarget + EXPORT SlangTargets FILE ${PROJECT_NAME}Targets.cmake NAMESPACE ${PROJECT_NAME}:: DESTINATION cmake -- cgit v1.2.3