Why is this project with gmock and gtest building in command line, but not in CLion?

I can't get my project with gmock and gtest to build within Clion,(on Linux) but I can manually build it in the command line from the project directory with:

mkdir build
cd build
cmake ..

When I hit build from within Clion I fail at building gmock and gtest:

test/CMakeFiles/gmock.dir/build.make:89: recipe for target 'test/gmock/src/gmock-stamp/gmock-download' failed
make[2]: *** [test/gmock/src/gmock-stamp/gmock-download] Error 1
CMakeFiles/Makefile2:144: recipe for target 'test/CMakeFiles/gmock.dir/all' failed
make[1]: *** [test/CMakeFiles/gmock.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2

I put the project up on Github: https://github.com/Zerophase/GameCircuse_PacketManager

Anyone know what's going on?

Comment actions Permalink

Shortly after posting this, I found out CLion 1.2 has built in support for googletest, so I just used their project design.

Comment actions Permalink

Hi Michael.

Do I understand correctly that everything is working fine for you now?


Please sign in to leave a comment.