Re: [CMake] infinite loop when using function overriding

2011-03-10 Thread Eric Noulard
2011/3/9 David Cole : > This is a question for folks at Stack Overflow. Literally. :-) > > I'm assuming you mean "_add_library(${name} ${ARGN})"? > > The "override and call original with a leading _" is probably not well > documented anywhere. While it's useful on occasion, we do not recommend > us

Re: [CMake] infinite loop when using function overriding

2011-03-09 Thread David Cole
This is a question for folks at Stack Overflow. Literally. :-) I'm assuming you mean "_add_library(${name} ${ARGN})"? The "override and call original with a leading _" is probably not well documented anywhere. While it's useful on occasion, we do not recommend using it if there's an alternate tec

[CMake] infinite loop when using function overriding

2011-03-09 Thread Johan Björk
Hi everyone, I just ran into an infinite loop in CMake. The cause is that I used function overrides in two locations in my CMake tree. Is the _function_name() syntax documented somewhere? What is the expected behavior? My structure is as follows: proj1 - CMakeLists.txt - common_core proj2 - C