fix: minor CMake warning fix for unused variable (#3718)

1 file changed