[cmake] Fix installation of json.hpp See merge request !3524
mentioned in commit 38527c16
mentioned in commit d6faf926