diff options
| author | Jay Kwak <82421531+jkwak-work@users.noreply.github.com> | 2025-02-28 15:15:55 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-28 23:15:55 +0000 |
| commit | bca772ca02bbe9c0f1201c7ae177a10ccff84958 (patch) | |
| tree | e0b9cd2b27d6d26d262393b23c93e613a23b4641 /tests/preprocessor | |
| parent | efbfa7832afff7e6285713086259abda2456ed55 (diff) | |
Fix build error when SLANG_ENABLE_TESTS is set to OFF (#6420)
* Fix build error when SLANG_ENABLE_TESTS is set to OFF
When SLANG_ENABLE_TESTS is disabled but SLANG_ENABLE_GFX is enabled,
cmake was failing. It turned out that gfx build target was trying to
copy some of files to the directory where slang-test uses. When
SLANG_ENABLE_TESTS is disabled, the directory information became
unavailable, because slang-test target became unavailable.
This commit makes the copying behavior conditional on SLANG_ENABLE_TESTS
in the gfx build target.
* format code (#42)
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
---------
Co-authored-by: slangbot <ellieh+slangbot@nvidia.com>
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>
Diffstat (limited to 'tests/preprocessor')
0 files changed, 0 insertions, 0 deletions
