[CMake] infinite loop when using function overriding
Johan Björk
phb at spotify.com
Wed Mar 9 09:45:54 EST 2011
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
- CMakeLists.txt
- common_core
in proj1 CMakeLists.txt I override a function using
function(add_library name)
_add_library_name(...)
...
endfunction()
include(common_core/common.cmake)
In common.cmake, I also override the function in the same way
function(add_library name)
_add_library_name(...)
...
endfunction()
This causes an infinite loop in latest master.
Thanks
/Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110309/e767f456/attachment.htm>
More information about the CMake
mailing list