head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2026.09.24.18.41.26; author ktnb; state Exp; branches; next ; commitid AK5A9yfwAFPPbUWG; desc @@ 1.1 log @Slang is a shading language that makes it easier to build and maintain large shader codebases in a modular and extensible fashion, while also maintaining the highest possible performance on modern GPUs and graphics APIs. Slang is based on years of collaboration between researchers at NVIDIA, Carnegie Mellon University, Stanford, MIT, UCSD and the University of Washington. The Slang compiler can generate code for a wide variety of targets: D3D12, Vulkan, Metal, D3D11, CUDA, and even generate code to run on a CPU. For textual targets, such as Metal Shading Language (MSL) and CUDA, Slang produces readable code that preserves original identifier names, as well as the type and call structure, making it easier to debug. @ text @$NetBSD$ Actually find the pkgsrc lz4. --- CMakeLists.txt.orig 2026-09-15 12:11:09.000000000 +0000 +++ CMakeLists.txt @@@@ -580,9 +580,13 @@@@ if(${SLANG_USE_SYSTEM_LZ4}) endif() if(${SLANG_USE_SYSTEM_LZ4}) - find_package(lz4 REQUIRED) + find_package(PkgConfig REQUIRED) + pkg_check_modules(LZ4 REQUIRED IMPORTED_TARGET liblz4) + if(NOT TARGET LZ4::lz4) + add_library(LZ4::lz4 ALIAS PkgConfig::LZ4) + endif() if(NOT TARGET lz4_static) - add_library(lz4_static ALIAS LZ4::lz4) + add_library(lz4_static ALIAS PkgConfig::LZ4) endif() endif() @