This was incorrectly set to 3.7, despite add_compile_definitions appearing in 3.11.
Note that you have to install the library before you can build this example, which is done by running cmake --build . --config Release --target install (noted as optional in the library README).
cmake --build . --config Release --target install