Hi,<br><br><br>I want to compile a file when parsing the CMakeLists.txt...<br><br>I tried the following:<br>TRY_COMPILE(<br> PROJ_OK<br> ${PROJECT_SOURCE_DIR}/bin<br> ${PROJECT_SOURCE_DIR}/externals/proj<br> proj<br>
)<br><br><br>But this is returning "false"... What could I have done wrong?<br><br>It is doing something, but I don't know what exactly... But it's definitly waiting a while (probably compiling)...<br>If I do a cmake . in externals/proj, it generates a MSVC project and I can build it no problem.<br>
<br><br>Can someone guide me in this command?<br><br><br>Thanks<br>