[CMake] Duplicate attempts to find software during cmake stage