Compilation error with BMP280 library and arduino nano BLE

I am not able to compile my project with the adafruit_BMP280 library for a nano 33 BLE, it is working fine with my standard nano.

On file included from /home/steph/Arduino/Projects/temperature_serre_ble/temperature_serre_ble.ino:22:0:
/home/steph/Arduino/libraries/Adafruit_BMP280_Library/Adafruit_BMP280.h:40:17: error: conflicting declaration 'arduino::SPIClass SPI'
 extern SPIClass SPI; /**< Forward declaration of SPI object */
                 ^~~
In file included from /home/steph/Arduino/Projects/temperature_serre_ble/temperature_serre_ble.ino:20:0:
/home/steph/.arduino15/packages/arduino/hardware/mbed/1.1.4/libraries/SPI/SPI.h:64:25: note: previous declaration as 'arduino::MbedSPI SPI'
 extern arduino::MbedSPI SPI;
                         ^~~
exit status 1
Erreur de compilation pour la carte Arduino Nano 33 BLE

Any help would be appreciated.

The Arduino Nano 33 BLE is a different architecture than the Arduino Nano and uses mbedOS. That a library works with your standard Nano does not mean it is compatible with the Nano 33 BLE. I think Nano only means the PCB has the same format now.

You are right, I manually modified the library to make it compiling, it works now.