bouffalolab / bouffalo_sdk

BouffaloSDK is the IOT and MCU software development kit provided by the Bouffalo Lab Team, supports all the series of Bouffalo chips. Also it is the combination of bl_mcu_sdk and bl_iot_sdk
Apache License 2.0
362 stars 128 forks source link

Do not overwrite CMake project() macro #199

Closed Jatsekku closed 7 months ago

Jatsekku commented 7 months ago

Due to fact that project() is being redefined at extension.cmake after including the boufallo_sdk vi find_package, all CMake's projects are affected and can't be build properly. As far as I know it's not good practice and make it very hard to use sdk as external dependency for other projects.

sakumisu commented 7 months ago

It is a popular style to redefine project, many projects follow this, and we do not suggest you to use other cmake style.

Jatsekku commented 7 months ago

So how can it be used to avoid problem which I mentioned before (without changes in SDK itself)?

sakumisu commented 7 months ago

Do not use your project's cmakelist, and add a new cmakelist with bl style in your project.