diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2025-02-19 15:51:22 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-18 23:51:22 -0800 |
| commit | 5ceef13e2336dfa1c4de8fdb3a273d81add0a7ca (patch) | |
| tree | 9e59e1d4d45c0686e7293b20838493aa2a829edd /docs/building.md | |
| parent | ad69ebd873a0fc79d1781863f1049daffa2cc318 (diff) | |
Fix and document static build (#6374)
* Set static stbi flag for static builds
* Add missing SYSTEM directive for external includes
* Add instructions for linking statically against slang
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'docs/building.md')
| -rw-r--r-- | docs/building.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/building.md b/docs/building.md index 21a86b03b..504e4e10c 100644 --- a/docs/building.md +++ b/docs/building.md @@ -321,6 +321,21 @@ cmake -B build -G Ninja cmake --build build -j ``` +## Static linking against libslang + +If linking against a static `libslang.a` you will need to link against some +dependencies also if you're not already incorporating them into your project. + +You will need to link against: + +``` +${SLANG_DIR}/build/Release/lib/libslang.a +${SLANG_DIR}/build/Release/lib/libcompiler-core.a +${SLANG_DIR}/build/Release/lib/libcore.a +${SLANG_DIR}/build/external/miniz/libminiz.a +${SLANG_DIR}/build/external/lz4/build/cmake/liblz4.a +``` + ## Notes [^1] below 3.25, CMake lacks the ability to mark directories as being |
