On 11.12.2015 20:27, Sachin Gaikwad wrote:
In GNU make, I can easily do this: "make foo.o" if I have foo.cc file
to build and this will only compile foo.cc and create foo.o. This
behavior is default one i.e. all object files are added as targets in
Makefile.
How do I get same behavior with cmake?
That should already be the default with CMake.
"make help" should list these targets.
Nils
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake