File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,15 @@ if(CMAKE_MRPT_HAS_xSENS)
187187
188188 if (MSVC )
189189 target_compile_definitions (mrpt_xsens PRIVATE XDA_STATIC_LIB)
190+ else ()
191+ # Needed for <time.h> to define timegm()
192+ target_compile_definitions (mrpt_xsens PRIVATE
193+ _GNU_SOURCE
194+ _BSD_SOURCE
195+ _DEFAULT_SOURCE
196+ )
190197 endif ()
198+
191199
192200 # needs to be exported, even if private, to make cmake happy since it wants
193201 # libraries to be statically-linkable:
Original file line number Diff line number Diff line change @@ -405,6 +405,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
405405 add_compile_options (-Wall -Wno-long-long -Wno-variadic-macros -Wshadow)
406406 add_compile_options (-Wreturn-local-addr -Werror=return-local-addr)
407407 add_compile_options (-Wno-psabi)
408+ add_compile_options ("$<$<COMPILE_LANGUAGE:C>:-Werror=implicit-function-declaration>" )
408409
409410 # Workaround: Eigen <3.4 produces *tons* of warnings in GCC >=6. See http://eigen.tuxfamily.org/bz/show_bug.cgi?id=1221
410411 if (NOT ${CMAKE_CXX_COMPILER_VERSION} LESS "6.0" AND "${MRPT_EIGEN_VERSION} " VERSION_LESS "3.4" )
Original file line number Diff line number Diff line change 44- Changes in libraries:
55 - \ref mrpt_obs_grp:
66 - mrpt::math::TBoundingBox: Mark all relevant methods with `` [nodiscard] `` to avoid mistakes.
7+ - BUG FIXES:
8+ - Fix Debian bug #1066207 : FTBFS in latest sid due to undefined declarations in mrpt_xsens C library.
79
810# Version 2.11.12: Released March 10th, 2024
911- Changes in libraries:
You can’t perform that action at this time.
0 commit comments