Reputation: 357
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:
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.
Upvotes: 0
Views: 980
Reputation: 1201
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.
Upvotes: 2