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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to