[CMake] Sharing object files among multiple executables

Alexander Neundorf a.neundorf-work at gmx.net
Sat Mar 10 04:38:10 EST 2007


Von: Braddock Gaskill <braddock at braddock.com>

> How can I share a common object file among multiple executable targets,
> without CMake re-compiling the common file for every target?

That's a feature, not a bug. The different targets might use different compiler settings or flags, so the produced object files are not necessarily identical, that's why they are compiled separatly for every target.

Bye
Alex

-- 
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out


More information about the CMake mailing list