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

gtest fails to compile on macOS M1 using clang14, clang16 #8

Open
sedoy107 opened this issue Apr 21, 2023 · 1 comment
Open

gtest fails to compile on macOS M1 using clang14, clang16 #8

sedoy107 opened this issue Apr 21, 2023 · 1 comment

Comments

@sedoy107
Copy link

Getting 12 errors like the one below

/Users/sergeygorbov/.hunter/_Base/0a8ede4/6c1eb30/c2ff296/Build/GTest/Source/googlemock/include/gmock/gmock-actions.h:455:3: error: definition of implicit copy constructor for 'PolymorphicAction<testing::internal::ReturnNullAction>' is deprecated because it has a user-declared copy assignment operator [-Werror,-Wdeprecated-copy]
  GTEST_DISALLOW_ASSIGN_(PolymorphicAction);
  ^
/Users/sergeygorbov/.hunter/_Base/0a8ede4/6c1eb30/c2ff296/Build/GTest/Source/googletest/include/gtest/internal/gtest-port.h:682:8: note: expanded from macro 'GTEST_DISALLOW_ASSIGN_'
  void operator=(type const &) = delete
       ^
/Users/sergeygorbov/.hunter/_Base/0a8ede4/6c1eb30/c2ff296/Build/GTest/Source/googlemock/include/gmock/gmock-actions.h:1011:10: note: in implicit copy constructor for 'testing::PolymorphicAction<testing::internal::ReturnNullAction>' first required here
  return MakePolymorphicAction(internal::ReturnNullAction());
@sedoy107
Copy link
Author

So this Hunter package manager is a bit outdated and that causes lots of issues. The newer releases can be found
at https://github.com/cpp-pm/hunter. I just changed the version from v0.23.297.tar.gz to v0.24.16.tar.gz in the download URL in the CMakeLists.txt and all went fine.

@sedoy107 sedoy107 reopened this Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant