You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the cmake_paths conan generator with boost::log 1.69.0, CMake warns that "New Boost version may have incorrect or missing dependencies and imported targets" on a Fedora 29 machine (full log below). The warning comes from the system-wide FindBoost.cmake file, which is still version 1.66 on this system. Shouldn't the conan boost package include FindBoost.cmake directly?
[rdeterre@localhost build]$ conan install .. && conan build ..
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=clang
compiler.libcxx=libstdc++11
compiler.version=7.0
os=Linux
os_build=Linux
[options]
[build_requires]
[env]
CC=clang
CXX=clang++
conanfile.py (boost-issue/None@None/None): Installing package
Requirements
boost/1.69.0@conan/stable from 'conan-center' - Cache
bzip2/1.0.6@conan/stable from 'conan-center' - Cache
zlib/1.2.11@conan/stable from 'conan-center' - Cache
Packages
boost/1.69.0@conan/stable:cabba3b08559858fc9c32b2017ab7a3cb8781a5e - Cache
bzip2/1.0.6@conan/stable:35437353b857392790f3121d268b1db3fb9a09b0 - Cache
zlib/1.2.11@conan/stable:35437353b857392790f3121d268b1db3fb9a09b0 - Cache
bzip2/1.0.6@conan/stable: Already installed!
zlib/1.2.11@conan/stable: Already installed!
boost/1.69.0@conan/stable: Already installed!
boost/1.69.0@conan/stable: LIBRARIES: ['boost_wave', 'boost_container', 'boost_contract', 'boost_exception', 'boost_graph', 'boost_iostreams', 'boost_locale', 'boost_log', 'boost_program_options', 'boost_random', 'boost_regex', 'boost_serialization', 'boost_wserialization', 'boost_coroutine', 'boost_fiber', 'boost_context', 'boost_timer', 'boost_thread', 'boost_chrono', 'boost_date_time', 'boost_atomic', 'boost_filesystem', 'boost_system', 'boost_type_erasure', 'boost_math_tr1l', 'boost_unit_test_framework', 'boost_stacktrace_noop', 'boost_stacktrace_basic', 'boost_math_tr1', 'boost_math_c99f', 'boost_log_setup', 'boost_math_c99l', 'boost_math_tr1f', 'boost_math_c99', 'boost_stacktrace_addr2line']
boost/1.69.0@conan/stable: Package folder: /home/rdeterre/.conan/data/boost/1.69.0/conan/stable/package/cabba3b08559858fc9c32b2017ab7a3cb8781a5e
conanfile.py (boost-issue/None@None/None): Generator cmake_paths created conan_paths.cmake
conanfile.py (boost-issue/None@None/None): Generator txt created conanbuildinfo.txt
conanfile.py (boost-issue/None@None/None): Generated conaninfo.txt
conanfile.py (boost-issue/None@None/None): Generated graphinfo
conanfile.py (boost-issue/None@None/None): Running build()
-- The C compiler identification is Clang 7.0.1
-- The CXX compiler identification is Clang 7.0.1
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning at /usr/share/cmake/Modules/FindBoost.cmake:847 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:5 (find_package)
CMake Warning at /usr/share/cmake/Modules/FindBoost.cmake:847 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:5 (find_package)
CMake Warning at /usr/share/cmake/Modules/FindBoost.cmake:847 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:5 (find_package)
CMake Warning at /usr/share/cmake/Modules/FindBoost.cmake:847 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:5 (find_package)
CMake Warning at /usr/share/cmake/Modules/FindBoost.cmake:847 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:5 (find_package)
CMake Warning at /usr/share/cmake/Modules/FindBoost.cmake:847 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:5 (find_package)
CMake Warning at /usr/share/cmake/Modules/FindBoost.cmake:847 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:5 (find_package)
CMake Warning at /usr/share/cmake/Modules/FindBoost.cmake:847 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:5 (find_package)
CMake Warning at /usr/share/cmake/Modules/FindBoost.cmake:847 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:5 (find_package)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Boost version: 1.69.0
-- Found the following Boost libraries:
-- log
-- date_time
-- log_setup
-- system
-- filesystem
-- thread
-- regex
-- chrono
-- atomic
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
CMAKE_INSTALL_BINDIR
CMAKE_INSTALL_DATAROOTDIR
CMAKE_INSTALL_INCLUDEDIR
CMAKE_INSTALL_LIBDIR
CMAKE_INSTALL_LIBEXECDIR
CMAKE_INSTALL_OLDINCLUDEDIR
CMAKE_INSTALL_SBINDIR
CONAN_COMPILER
CONAN_COMPILER_VERSION
CONAN_CXX_FLAGS
CONAN_C_FLAGS
CONAN_EXPORTED
CONAN_IN_LOCAL_CACHE
CONAN_LIBCXX
CONAN_SHARED_LINKER_FLAGS
-- Build files have been written to: /home/rdeterre/boost-issue/build
Scanning dependencies of target boost-issue
[ 50%] Building CXX object CMakeFiles/boost-issue.dir/main.o
[100%] Linking CXX executable boost-issue
[100%] Built target boost-issue
The text was updated successfully, but these errors were encountered:
Hi there! 👋
I'm closing this issue as boost/1.69.0 is not more supported and the recipe has suffer plenty of changes.
If the issue remains, do not hesitate to reopen this issue or creating a new one.
Happy coding 🐸
moved from https://github.com/conan-community/community/issues/156, by @rdeterre
Description of Problem, Request, or Question
Using the
cmake_paths
conan generator with boost::log 1.69.0, CMake warns that "New Boost version may have incorrect or missing dependencies and imported targets" on a Fedora 29 machine (full log below). The warning comes from the system-wide FindBoost.cmake file, which is still version 1.66 on this system. Shouldn't the conan boost package include FindBoost.cmake directly?Package Details (Include if Applicable)
Steps to reproduce (Include if Applicable)
Build a package with the following files:
conanfile.py:
CMakeLists.txt
main.cpp
Build logs (Include if Available)
The text was updated successfully, but these errors were encountered: