A 45° line from the bottom of any footing has to miss the wall of the pool or a surcharge detail for the pool wall must be followed.Depending on the depth and size of any hole in the ground there could be a negative effect on the foundation of a building/structure that is located in close proximity to the hole. A swimming pool is a hole in the ground with water in it.
There are a lot of factors that would need to be known before a determination could be made if it would negatively affect an adjacent building. Types of soils, seismic zone, depth of pool, depth of foundation to name a few