xmos / lib_mic_array

Microphone array library
Other
23 stars 32 forks source link

moved CPMAddPackage to top-level CMakeLists #175

Closed keithm-xmos closed 1 year ago

keithm-xmos commented 1 year ago

If this CMakeLists is included in a parent project (via add_subdirectory): https://github.com/xmos/lib_mic_array/blob/develop/lib_mic_array/CMakeLists.txt

Then lib_xcore_math will be fetched which is undesirable. The parent project needs to be able to fetch (or submodule) lib_xcore_math in the manner it wishes.

lib_xcore_math must only be fetched by lib_mic_array when lib_mic_array is a top-level project.

astewart-xmos commented 1 year ago

Ah, that makes sense.