Hello guys!<div><br></div><div>I&#39;m new in CMake world, and i&#39;m trying to compile a daemon developed a log time ago.</div><div>I can compile all my codes without problems, but in the linkage step, i receive a lot of errors about undefined reference to OpenSSL functions (yes, my code uses OpenSSL).</div>

<div><br></div><div>In my own (and ugly :P) Makefile, i use &quot;-lssl&quot; flag in g++ compile line.</div><div><br></div><div>My question is: how can i pass this flag in CMake.</div><div>Also, i&#39;m not sure if i&#39;m using CMake correctly. Is correctly use &quot;-lssl&quot; flag in CMake or i need to copy the library to a folder inside my project and link to this copy?</div>

<div>My objective is create a final .deb and RMP package after my code is compiled. So, they will manage the library versions.</div><div><br></div><div>Thank you so much for every reply send!<br clear="all"><div><br></div>

-- <br>Best regards,<br><br>MaurĂ­cio Souza Klein.<br>
</div>