Fix CMake and export macro after previous commit

Authored by dvratil on Apr 11 2020, 7:07 AM.