<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Target_link_Libraries (Executable   pthread rt dl nsl)<div><br></div><div>If those libraries are in the standard locations gcc should be able to pick them up ok.<br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Bitstream Vera Sans; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">-- </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Mike Jackson   Senior Research Engineer</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Innovative Management &amp; Technology Services</div><br class="Apple-interchange-newline"></span> </div><br><div><div>On Jun 26, 2008, at 5:44 AM, Ingrid Kemgoum wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>hi, i'm building a unix project.</div> <div>i want to add "-lpthread -lrt -ldl -lnsl" to all executables.</div> <div>when i use set_target_prop with link_flags, those lib are placed right after the compile flags.</div> <div>when i use set(cmake_standard-libraries libpthread.so ...) nothing happen  i don't even know where this command has an effect.</div> <div> </div> <div>My problem is that in unix we have order in librairies and i want those at the end for all my executables.</div> <div>i've tested adding libpthread.so at the end in target_link_libraries(..) for one of my executables and everythink goes well.</div> <div> </div> <div>what can i do to fix this first to be set in link options for my executables?</div> <div> </div> <div>i don't know if i'm clear but thanks for help</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">CMake mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:CMake@cmake.org">CMake@cmake.org</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></div> </blockquote></div><br></div></body></html>