For anyone experiencing a similar issue, you can fix it by providing the SDK_INCLUDES directory path to the cmake command. At the time of writing, the D3D12 SDK is downloaded by running dependencies.bat and stored in the TextureSetNeuralCompressionSample\3rd folder.
cmake .. -DDX12_SDK_VERSION=717 -DBACASABLE_SDK_INCLUDES="..\3rd\include"