Skip to content
This repository has been archived by the owner on Jul 17, 2019. It is now read-only.

CMake Error in CMakeLists.txt #203

Open
natemurthy opened this issue Mar 24, 2017 · 2 comments
Open

CMake Error in CMakeLists.txt #203

natemurthy opened this issue Mar 24, 2017 · 2 comments

Comments

@natemurthy
Copy link

natemurthy commented Mar 24, 2017

I'm using GCC 4.8.4, GNU Make 3.81, and CMake 2.8.12.2 on my Ubuntu 14.04 machine trying to compile a small project that depends on gtest and gmock. You can view the full source of this project along with my CMake files here: https://github.com/natemurthy/misc/tree/master/cpp-stuff/containers

I perform the usual steps of doing mkdir build && cd build && cmake .. && make but hit this error after downloading, extracting, and configuring the gmock 1.7.0 dependency:

CMake Error at CMakeLists.txt:51 (add_subdirectory):
  add_subdirectory given source "../gtest" which is not an existing
  directory.

CMake Error at CMakeLists.txt:56 (config_compiler_and_linker):
  Unknown CMake command "config_compiler_and_linker".

Any help solving this would be appreciated!

@natemurthy
Copy link
Author

Here's another example of the same build failure, not sure how the owners of this project resolved their issue: https://travis-ci.org/open-eid/esteid-pkcs11/builds/39580725

@ricksu
Copy link

ricksu commented Mar 27, 2017

I build it successfully by using https://github.com/google/googletest/ .

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

No branches or pull requests

2 participants