Files
nixpkgs/pkgs/by-name/tr/tracy/cmake/Findzstd.cmake
David Kern add0b2ae14 tracy: 0.11.1 -> {0.11.1, 0.12.2, 0.13.1}
Resolves #417177
Supersedes #428369

This splits the tracy package into three packages
(tracy_0_11, tracy_0_12, tracy_0_13) which track
the most recent upstream point releases of each.
tracy is an alias to the most recent package,
tracy_0_13 (0.13.1).

This builds off of work by @MonaMayrhofer in
https://github.com/NixOS/nixpkgs/pull/428369
2026-03-07 11:04:58 -08:00

8 lines
290 B
CMake

# nixpkgs `zstd` provides `zstd::libzstd` but tracy links against `libzstd`.
#
# Using CONFIG mode bypasses FindPackage modules, so this won't recurse.
find_package(zstd CONFIG REQUIRED)
add_library(libzstd INTERFACE IMPORTED GLOBAL)
target_link_libraries(libzstd INTERFACE zstd::libzstd)