-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSVC CMake build fails with BUILD_SHARED_LIBS=1 #3482
Comments
s-perron
pushed a commit
that referenced
this issue
Jul 27, 2020
Rename the `${SPIRV_TOOLS}` target to `${SPIRV_TOOLS}-static` and alias `${SPIRV_TOOLS}` to either `${SPIRV_TOOLS}-static` or `${SPIRV_TOOLS}-shared` depending on `BUILD_SHARED_LIBS`. Re-point all internal uses of `${SPIRV_TOOLS}` to `${SPIRV_TOOLS}-static`. `${SPIRV_TOOLS}-static` is explicitly renamed to just `${SPIRV_TOOLS}` to ensure the name does not change from current behavior. Build the `SPIRV-Tools-*` libraries as static, as this is what they always were. Force the external targets `gmock` and `effcee` to be built statically. These either do not support being built as shared libraries, or require special flags. Issue: #3482
dnovillo
pushed a commit
to dnovillo/SPIRV-Tools
that referenced
this issue
Aug 19, 2020
Rename the `${SPIRV_TOOLS}` target to `${SPIRV_TOOLS}-static` and alias `${SPIRV_TOOLS}` to either `${SPIRV_TOOLS}-static` or `${SPIRV_TOOLS}-shared` depending on `BUILD_SHARED_LIBS`. Re-point all internal uses of `${SPIRV_TOOLS}` to `${SPIRV_TOOLS}-static`. `${SPIRV_TOOLS}-static` is explicitly renamed to just `${SPIRV_TOOLS}` to ensure the name does not change from current behavior. Build the `SPIRV-Tools-*` libraries as static, as this is what they always were. Force the external targets `gmock` and `effcee` to be built statically. These either do not support being built as shared libraries, or require special flags. Issue: KhronosGroup#3482
This was referenced Oct 12, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to #3214 (comment), attempting to build with
BUILD_SHARED_LIBS
enabled, fails to link:Tested on Microsoft Visual Studio Community 2019 - Version 16.4.5, using the builtin CMake build system.
The text was updated successfully, but these errors were encountered: