Re: [CMake] Adding a library to link in during TRY_RUN with Windows/nmake?

2010-10-12 Thread Eric Noulard
2010/10/12 Clifford Yapp : > I'm trying to compile some C code using TRY_RUN that uses gethostname, > but in order for this code to succeed on Windows it needs "/link > ws2_32.lib" added to the compile line.  I have tried putting this > string into the ARGS variable of TRY_RUN and a couple of CMake

[CMake] Adding a library to link in during TRY_RUN with Windows/nmake?

2010-10-12 Thread Clifford Yapp
I'm trying to compile some C code using TRY_RUN that uses gethostname, but in order for this code to succeed on Windows it needs "/link ws2_32.lib" added to the compile line. I have tried putting this string into the ARGS variable of TRY_RUN and a couple of CMake variables, but the compile still f