Experimenting with using a macro instead of a function.

If this works, then CMake may have a bug using PARENT_SCOPE.
Removing parent_scope settings.