Is there some way to set the default value for a target property?  That is, I 
have a flag that I'd like to apply to *everything* without setting it for each 
specific target.

Specifically, I'm trying to use Whole Program Optimization in Visual Studio.  
As I understand it, I need to add "/LTCG" to the target-specific property 
STATIC_LIBRARY_FLAGS.  But setting this for every static library individually 
is rather fragile.

I found:

  http://www.itk.org/Bug/view.php?id=9831

That bug seems to describe what I want; but it looks like it was closed on the 
basis of a fix that addresses a different problem, yet happens to satisfy the 
specific example given in the bug report. 

Is there some way to do what I want already implemented in CMake?  Should that 
bug be reopened?

-- 
Braden McDaniel
[email protected]

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to