generate_export_header: generated file name, issue with case

Hi,

I have an issue with …_export.h file creation with generate_export_header.
My targeted library is camel-cased (for instance MyLib).
On windows, the generated file is name MyLib_export.h while on ubuntu 16.04, I get mylib_export.h, even if I force BASE_NAME to MyLib.

Do I do something wrong?
Why is the behavior different between OS?

Thanks,
A.

That is…strange. Can you provide a small reproducer example?

CMakeExample.7z (2.5 KB)
Here you are