diff options
Diffstat (limited to 'mpm/lib')
-rw-r--r-- | mpm/lib/i2c/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mpm/lib/i2c/CMakeLists.txt b/mpm/lib/i2c/CMakeLists.txt index f083325a7..105e9a8b0 100644 --- a/mpm/lib/i2c/CMakeLists.txt +++ b/mpm/lib/i2c/CMakeLists.txt @@ -8,5 +8,9 @@ set(I2C_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/i2c_regs_iface.cpp ${CMAKE_CURRENT_SOURCE_DIR}/i2cdev.c ) +set_source_files_properties( + ${CMAKE_CURRENT_SOURCE_DIR}/i2cdev.c + PROPERTIES COMPILE_FLAGS "-D_GNU_SOURCE" +) USRP_PERIPHS_ADD_OBJECT(i2c ${I2C_SOURCES}) |