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

cmake: Call get_filename_component() with DIRECTORY mode instead of PATH mode #9614

Merged
merged 1 commit into from
Mar 10, 2022

Conversation

Arfrever
Copy link
Contributor

PATH mode is legacy alias for DIRECTORY mode (needed only for CMake <= 2.8.11):
https://cmake.org/cmake/help/latest/command/get_filename_component.html

By the way, get_filename_component() command itself is deprecated in favor of cmake_path() command, but cmake_path() command was introduced in CMake 3.20, which is too new for Protobuf, which currently requires CMake >= 3.5.

@acozzette acozzette merged commit bd935e1 into protocolbuffers:master Mar 10, 2022
@acozzette
Copy link
Member

@Arfrever Thanks!

@Arfrever Arfrever deleted the cmake branch March 10, 2022 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants