summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-12-05 17:45:24 +0800
committerGitHub <noreply@github.com>2024-12-05 09:45:24 +0000
commit072cb60bb63e9f3d1c42fa18adcebb77bb4aa6ae (patch)
treef123367640c89e8d112009ccd6fb389a6a24ee92 /CMakeLists.txt
parent3f4b3112871bb978ee5104fd36321345da35a8d1 (diff)
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
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 4 insertions, 7 deletions
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