[CMake] Adding all object files as target

2015-12-11 Thread Sachin Gaikwad
Hi all, 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? Sachin -- Powered by www.kitwar

[CMake] Cmake: VS2013: General -> Whole Program Optimization (/LTCG)

2015-05-08 Thread Sachin Gaikwad
Hi all, I am using: - cmake-3.0.2 - Visual Studio 2013 (Update 4) I get this log message in build logs when I build any target in my Visual Studio solution: "MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker perf