I have a strange issue with cmake from within CLion: it can't create a valid Makefile. My system is OSX 10.10 with CLion 140.1740.3.
A build run from within the IDE always ends up like this:
"/Applications/CLion EAP.app/Contents/bin/cmake/bin/cmake" --build /Users/carsten/Library/Caches/clion10/cmake/generated/f7d128fd/f7d128fd/Debug --target test -- -j 4
CMakeFiles/test.dir/build.make:53: *** target pattern contains no `%'. Stop.
make: *** [CMakeFiles/test.dir/all] Error 2
make: *** [CMakeFiles/test.dir/rule] Error 2
make: *** [test] Error 2
When I'm using cmake outside the IDE with the same CMakeLists.txt, all is working well, also with CLion's own cmake - just not from the IDE.