Defining an override macro/function of add_library more than once causes a segmentation fault.
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
If a macro or function override of add_library is created in more than one scope, either directly or through an include of a common file, cmake seg faults during calls to add_library in the second scope. The call to _add_library in the override resolves to the second 'instance' of the add_library override, resulting in an infinite recursion.
Uncompress the attached test project, go to the build directory, and run cmake.