cmake: Do not install static libraries in shared build mode.
authorRalf Habacker <ralf.habacker@freenet.de>
Mon, 12 Sep 2022 08:18:51 +0000 (10:18 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Tue, 13 Sep 2022 13:57:44 +0000 (15:57 +0200)
commit7cd519511c32d7e86d901c7ed231cb84c652d18d
tree868da477508ca26f4ac740d9570d4fccd9f746bf
parentc0cf8ad87627227c7f1d3be6177bbf2832d3fc1b
cmake: Do not install static libraries in shared build mode.

The glslang cmake build system installs static libraries in addition to
the dynamic glslang library, which are required when used in a package
that uses glslang when calling find_package().

Distributions such as openSUSE (and perhaps others) use a "shared only"
strategy, which conflicts with the current state of the glslang build
system.
The static libraries mentioned are already all included in glslang and
thus not needed. With this commit, these will no longer install the
associated cmake support files when glslang is built shared.
OGLCompilersDLL/CMakeLists.txt
glslang/CMakeLists.txt
glslang/OSDependent/Unix/CMakeLists.txt