commit | 1125f1b269959fff3737f67a01baac08074916d9 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Fri Jul 03 22:54:30 2020 +0100 |
committer | Ben Clayton <bclayton@google.com> | Fri Jul 03 23:24:08 2020 +0100 |
tree | df6c16423c799c1afba213db179a77032a2286d2 | |
parent | 73e001a7528801f9455b49f198b0646631e79bd8 [diff] |
Add GLSLANG_BUILD_PIC CMake flag Enables `-fPIC` compiler flag even when building statically. This is helpful for statically linking a `glslang` target into a shared library. Simplifies the workarounds seen in google/shaderc#1093 to a `set(GLSLANG_BUILD_PIC 1)`.