<font color="#660000"><font face="trebuchet ms,sans-serif">Hello all,</font></font><div><font color="#660000"><font face="trebuchet ms,sans-serif"><br></font></font></div><div><font color="#660000"><font face="trebuchet ms,sans-serif">I'm building several executables which are located in a single directory. Each executable has different include path. I'm calling add_executable in a loop and If I call Include_Directories in the loop, the last built executable will have a long include path.</font></font></div>
<div><font color="#660000"><font face="trebuchet ms,sans-serif"><br></font></font></div><div><font color="#660000"><font face="trebuchet ms,sans-serif">To avoid that, I'm setting COMPILE_FLAGS property on each of the target in the loop. But I'm facing a problem with cmake due to this. CMake is not identifying the dependencies in the include path. </font></font></div>
<div><font color="#660000"><font face="trebuchet ms,sans-serif"><br></font></font></div><div><span class="Apple-style-span" style="color: rgb(102, 0, 0); font-family: 'trebuchet ms', sans-serif; ">In short, If Include_Directories is replaced by Set_Property, cmake is not generating proper dependency information. Is this expected or is this a defect ?</span></div>
<div><font color="#660000"><font face="trebuchet ms,sans-serif"><br></font></font></div><div><font color="#660000"><font face="trebuchet ms,sans-serif">Thanks,</font></font></div><div><font color="#660000"><font face="trebuchet ms,sans-serif">Surya</font></font></div>