-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
The "cmake/CMakeLists.txt -> CMakeLists.txt" redirection deactivates some policies silently. #12263
Labels
Comments
jtattermusch
added
the
untriaged
auto added to all issues by default when created.
label
Mar 17, 2023
fowles
added
packaging & distribution
and removed
untriaged
auto added to all issues by default when created.
labels
Mar 17, 2023
I think we should probably just delete that file at this point. @jtattermusch Would that be ok from your perspective or would that break gRPC? |
jtattermusch
added a commit
to grpc/grpc
that referenced
this issue
Mar 22, 2023
…#32678) Try to react to protocolbuffers/protobuf#12263 and protocolbuffers/protobuf#12295 Protobuf's /cmake/CMakeLists.txt is now deprecated if favor of /CMakeLists.txt https://github.com/protocolbuffers/protobuf/blob/58ecf38aa521ba812a0c1a0ae9f108dd311c739c/cmake/CMakeLists.txt#L3 In this PR: - Adjust `cmake/protobuf.cmake` to use the right CMakeLists.txt - adjust the C++ distribtests accordingly
jtattermusch
added a commit
to jtattermusch/grpc
that referenced
this issue
Mar 24, 2023
…grpc#32678) Try to react to protocolbuffers/protobuf#12263 and protocolbuffers/protobuf#12295 Protobuf's /cmake/CMakeLists.txt is now deprecated if favor of /CMakeLists.txt https://github.com/protocolbuffers/protobuf/blob/58ecf38aa521ba812a0c1a0ae9f108dd311c739c/cmake/CMakeLists.txt#L3 In this PR: - Adjust `cmake/protobuf.cmake` to use the right CMakeLists.txt - adjust the C++ distribtests accordingly
XuanWang-Amos
pushed a commit
to XuanWang-Amos/grpc
that referenced
this issue
May 1, 2023
…grpc#32678) Try to react to protocolbuffers/protobuf#12263 and protocolbuffers/protobuf#12295 Protobuf's /cmake/CMakeLists.txt is now deprecated if favor of /CMakeLists.txt https://github.com/protocolbuffers/protobuf/blob/58ecf38aa521ba812a0c1a0ae9f108dd311c739c/cmake/CMakeLists.txt#L3 In this PR: - Adjust `cmake/protobuf.cmake` to use the right CMakeLists.txt - adjust the C++ distribtests accordingly
wanlin31
pushed a commit
to grpc/grpc
that referenced
this issue
May 18, 2023
…#32678) Try to react to protocolbuffers/protobuf#12263 and protocolbuffers/protobuf#12295 Protobuf's /cmake/CMakeLists.txt is now deprecated if favor of /CMakeLists.txt https://github.com/protocolbuffers/protobuf/blob/58ecf38aa521ba812a0c1a0ae9f108dd311c739c/cmake/CMakeLists.txt#L3 In this PR: - Adjust `cmake/protobuf.cmake` to use the right CMakeLists.txt - adjust the C++ distribtests accordingly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The "cmake/CMakeLists.txt" is now deprecated, but there are some hidden problems with how it's forwarding to /CMakeLists.txt (in the repo root).
I found that some cmake policies get silently deactivated if one uses cmake/CMakeLists.txt
E.g. here:
protobuf/CMakeLists.txt
Line 10 in 244b245
Since
CMP0091
needs to be set before languages are initialized, butprotobuf/cmake/CMakeLists.txt
Line 5 in 244b245
and settings made here
protobuf/CMakeLists.txt
Line 233 in 244b245
/MD
still being present in CMAKE_CXX_FLAGS_*(at least this is my interpretation of what happens, but I've observed
/MD
flag being present when it should not).The text was updated successfully, but these errors were encountered: