<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Ryan,<div><br><div><div>On Dec 4, 2010, at 10:08 AM, Ryan Pavlik wrote:</div><br class="Apple-interchange-newline"><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">http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:STATIC_LIBRARY_FLAGS</a></div></blockquote><div><br></div>This doesn't seem to do what I want it to. &nbsp;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 "-noel")</div><div><br></div><div>but my bogus option never appears anywhere, and I am creating a static archive library for this target. &nbsp;Also, it seems this flag is geared more to passing flags to ar, not to ranlib (at least there's been some discussion about using it to pass -X 64 to ar on AIX).</div><div><br></div><div>Note that I've also tried this approach.</div><div><br></div><div><div>&nbsp;&nbsp;-D CMAKE_RANLIB:FILEPATH="/usr/bin/ranlib -c"</div></div><div><br></div><div>resulting in this error.</div><div><br></div><div><div>"/usr/bin/ranlib -c" 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><div>-- Noel</div><div><br></div></div></div></body></html>