Hi everyone,<div><br></div><div>I just ran into an infinite loop in CMake. The cause is that I used function overrides in two locations in my CMake tree.</div><div>Is the _function_name() syntax documented somewhere? What is the expected behavior?</div>
<div><br></div><div><br></div><div>My structure is as follows:</div><div>proj1</div><div> - CMakeLists.txt</div><div> - common_core</div><div>proj2</div><div><meta charset="utf-8"> - CMakeLists.txt</div><div> - common_core</div>
<div><br></div><div>in proj1 CMakeLists.txt I override a function using</div><div>function(add_library name)</div><div>_add_library_name(...)</div><div>...</div><div>endfunction()</div><div>include(common_core/common.cmake)</div>
<div><br></div><div>In common.cmake, I also override the function in the same way</div><div><meta charset="utf-8"><div>function(add_library name)</div><div>_add_library_name(...)</div><div>...</div><div>endfunction()</div>
<div><br></div><div>This causes an infinite loop in latest master. </div><div><br></div><div>Thanks</div><div>/Johan</div><div><br></div>
</div>