<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi,</div><div><br></div>This is a long overdue followup.<div><br><div><div>On Dec 4, 2010, at 12:10 PM, Belcourt, K. Noel wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><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></div></div></blockquote><div><br></div>STATIC_LIBRARY_FLAGS are passed to the archiver. On the Mac, I need to run ranlib after ar runs, and pass flags (-c) to ranlib. Another other ideas how to achieve this?</div><div><br></div><div>Thanks.</div><div><br></div><div>-- Noel</div><div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><blockquote type="cite"> </blockquote> <div>This doesn't seem to do what I want it to. In my CMakeLists.txt file I have this code.</div></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. 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> -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> </div> </blockquote></div><br></div></body></html>