Can you see versions_export.h in the build tree? I suspect that EXPORT_FILE_NAME is expecting just a filename, so you’re getting /path/to/binary/dir/path/to/binary/dir/versions_export.h.
versions_export.h appears in my build dir, and my IDE recognises it in the #include.
Relative paths work, as do absolute paths. But regardless when I got to actually build it I get this ‘not found’ error. Maybe it needs its own target so that it is guaranteed generated before it is used or something?
(My CMakeLists.txt is only 53 lines so if you know what it needs just try and see)
Unfortunately ${CMAKE_CURRENT_SOURCE_DIR} was the only thing that worked. Tried everything from relative paths to ${CMAKE_CURRENT_BINARY_DIR} to no EXPORT_FILE_NAME to completely different targets.