[CMake] FindJsoncpp.cmake: Use foreach variable.