mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Link to absl::log_flags
This enables control of logging using commandline flags. Fixes https://github.com/ceres-solver/ceres-solver/issues/1090 Change-Id: Ia0fd6abf4a8e6dfa8bc4e71d2263d622a28b0268
This commit is contained in:
@@ -30,12 +30,12 @@
|
||||
|
||||
# Build the list of dependencies for Ceres based on the current configuration.
|
||||
|
||||
# Avoid 'xxx.cc has no symbols' warnings from source files which are 'empty'
|
||||
# when their enclosing #ifdefs are disabled.
|
||||
find_package(Threads REQUIRED)
|
||||
list(APPEND CERES_LIBRARY_PRIVATE_DEPENDENCIES Threads::Threads)
|
||||
# Make dependency visible to the parent CMakeLists.txt
|
||||
set(Threads_DEPENDENCY "find_dependency (Threads)" PARENT_SCOPE)
|
||||
list(APPEND CERES_LIBRARY_PRIVATE_DEPENDENCIES $<LINK_LIBRARY:WHOLE_ARCHIVE,absl::log_flags>)
|
||||
|
||||
|
||||
list(APPEND CERES_LIBRARY_PUBLIC_DEPENDENCIES absl::log)
|
||||
list(APPEND CERES_LIBRARY_PUBLIC_DEPENDENCIES absl::check)
|
||||
|
||||
Reference in New Issue
Block a user