Skip to content
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

fix: support for static builds with MSVC #5856

Merged
merged 2 commits into from
Feb 16, 2021

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Feb 16, 2021

My previous cleanup was incorrect. CMake protects usage of
CMAKE_MSVC_RUNTIME_LIBRARY with a policy, the variable (or rather the
MSVC_RUNTIME_LIBRARY property set by this variable) has no effect if the
CMP0091 policy is set to OLD, as would be in our builds because we say
that version 3.5 is the behavior we want in cmake_minimum_required().


This change is Reviewable

My previous cleanup was incorrect. CMake protects usage of
CMAKE_MSVC_RUNTIME_LIBRARY with a policy, the variable (or rather the
MSVC_RUNTIME_LIBRARY property set by this variable) has no effect if the
CMP0091 policy is set to OLD, as would be in our builds because we say
that version 3.5 is the behavior we want in cmake_minimum_required().
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 16, 2021
@codecov
Copy link

codecov bot commented Feb 16, 2021

Codecov Report

Merging #5856 (0aabbef) into master (cb61dda) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5856      +/-   ##
==========================================
- Coverage   95.45%   95.45%   -0.01%     
==========================================
  Files        1115     1115              
  Lines      102635   102635              
==========================================
- Hits        97972    97970       -2     
- Misses       4663     4665       +2     
Impacted Files Coverage Δ
...bigtable/examples/bigtable_hello_instance_admin.cc 82.22% <0.00%> (-2.23%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cb61dda...0aabbef. Read the comment docs.

@coryan coryan marked this pull request as ready for review February 16, 2021 17:00
@coryan coryan requested a review from a team as a code owner February 16, 2021 17:00
@coryan coryan merged commit 8c0fdd6 into googleapis:master Feb 16, 2021
@coryan coryan deleted the fix-msvc-support-for-static-libs branch February 16, 2021 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants