5/7/2023 0 Comments Cmake commands![]() Execution never reaches the first implementation.įor the find_package() example mentioned earlier, the implications of find_package() being redefined more than once are catastrophic. This enters the second implementation which also calls _printme(), but _printme() points back at the second implementation again and infinite recursion results. ![]() When printme() is called, execution enters the third implementation, which calls _printme(). Again, CMake finds an existing command by that name, so it redefines the name _printme to point to the old command (which is the second implementation) and sets printme to point to the new definition.
0 Comments
Leave a Reply. |