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 CMake broken under CMake 2.8 #163

Closed
jeremysalwen opened this issue Sep 12, 2017 · 3 comments
Closed

GTest CMake broken under CMake 2.8 #163

jeremysalwen opened this issue Sep 12, 2017 · 3 comments

Comments

@jeremysalwen
Copy link

extras/gtest/CMakeLists.txt fails with

CMake Error at rapidcheck/extras/gtest/CMakeLists.txt:2 (add_library):     
  Cannot find source file:   
         INTERFACE
  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx     

This is a caused by the using the "INTERFACE" feature which is not available in CMake 2.8.12. However, the CMakeLists.txt in the root declares a minimum version of CMake 2.8.12.

@emil-e
Copy link
Owner

emil-e commented Sep 14, 2017

Do you happen to know when this was added?

@janisozaur
Copy link
Contributor

It surely is present in 3.0: https://cmake.org/cmake/help/v3.0/manual/cmake-buildsystem.7.html#interface-libraries

CMake's online docs only go that far, but it's likely 2.8 was the last major release before 3.0

@janisozaur
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants