<div>What&#39;s the preferred solution to the OS X getline problem (meaning that it doesn&#39;t exist in OS X&#39;s libc) when using CMake?</div><div>(&quot;Don&#39;t use getline&quot; isn&#39;t an option)</div><div><br></div>

<div><br></div><div>I&#39;d like to have an explanation of the solution and see an example which employs it.</div><div><br></div><div><br></div><div>This is my first time I&#39;ve tried to compile my Linux code on OS X, so I don&#39;t know anything about how to specify the &quot;do this with os xyz and do this with os abc&quot; options.</div>

<br clear="all">AJ ONeal<br>