The name of the target property likely has to be matching the original case (all caps)<div><br></div><div>Ryan<br><br><div class="gmail_quote">On Sat, Dec 4, 2010 at 1:10 PM, Belcourt, K. Noel <span dir="ltr">&lt;<a href="mailto:kbelco@sandia.gov">kbelco@sandia.gov</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word">Hi Ryan,<div><br><div><div class="im"><div>On Dec 4, 2010, at 10:08 AM, Ryan Pavlik wrote:</div>
<br></div><div class="im"><blockquote type="cite">You can configure this for your project:<div><a href="http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:STATIC_LIBRARY_FLAGS" target="_blank">http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:STATIC_LIBRARY_FLAGS</a></div>
</blockquote><div><br></div></div>This doesn&#39;t seem to do what I want it to.  In my CMakeLists.txt file I have this code.</div><div><br></div><div><div>ADD_LIBRARY(modules ${SRCS})</div><div>set_target_properties(modules PROPERTIES static_library_flags &quot;-noel&quot;)</div>
<div><br></div><div>but my bogus option never appears anywhere, and I am creating a static archive library for this target.  Also, it seems this flag is geared more to passing flags to ar, not to ranlib (at least there&#39;s been some discussion about using it to pass -X 64 to ar on AIX).</div>
<div><br></div><div>Note that I&#39;ve also tried this approach.</div><div><br></div><div><div>  -D CMAKE_RANLIB:FILEPATH=&quot;/usr/bin/ranlib -c&quot;</div></div><div><br></div><div>resulting in this error.</div><div><br>
</div><div><div>&quot;/usr/bin/ranlib -c&quot; libmodules.a</div><div>Error running link command: No such file or directory</div><div>make[2]: *** [Modules/libmodules.a] Error 2</div></div><div><br></div><div>Naturally omitting the quotes silently drops the -c option.</div>
<div><br></div><font color="#888888"><div>-- Noel</div><div><br></div></font></div></div></div></blockquote></div><br><br clear="all"><br>-- <br>Ryan Pavlik<br>HCI Graduate Student<br>Virtual Reality Applications Center<br>
Iowa State University<br><br><a href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a><br><a href="http://academic.cleardefinition.com">http://academic.cleardefinition.com</a><br>Internal VRAC/HCI Site: <a href="http://tinyurl.com/rpavlik">http://tinyurl.com/rpavlik</a><br>

</div>