0

I am trying to use CMake to build Google Test. As mentioned in the README of Google Test, I have issued following commands:

  mkdir mybuild       # Create a directory to hold the build output.
  cd mybuild
  cmake D:\gtest-1.6.0 # (in the README this was set as:cmake ${GTEST_DIR}, but since on my machine D:\gtest-1.6.0 is where I have downloaded gtest, I have used that in command prompt.

And here is the error I get: enter image description here

Any help? any help would be greatly appreciated as I am stuck with it and can't move forward...... Thanks. ps. I have Visual Studio 10 installed on my machine.

1 Answer 1

2

If you use Visual c++ compiler with cmake you must launch it from the Visual c++ command prompt. Otherwise cmake will not found your compiler.

Sign up to request clarification or add additional context in comments.

6 Comments

Hi, yes I have Visual Studio 10 installed. And I downloaded CMake 2.6 too. ps. What is "dev command prompt"?
I edited my answer. You'll find it in the visual studio application folder. See msdn.microsoft.com/en-us/library/ms235639%28v=vs.80%29.aspx for info
Hi, thanks but I get same issue even if I use Visual Studio Command Prompt (2010). : ((
Please post what D:\gtest-1.6.0\CMakeLists.txt contains.
Hi, please look here: filedropper.com/cmakelists - it was too big to copy and paste here..
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.