Skip to content

Dependency scanner does not recognize one-line dependencies #17

@Lastique

Description

@Lastique

Originally reported in boostorg/filesystem#226.

If CMakeLists.txt of a library contains one-line dependency such as this:

target_link_libraries(boost_filesystem PRIVATE Boost::atomic)

the dependency scanner does not recognize this. This affects Boost.Filesystem, so issuing this command on Boost root:

cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBOOST_INCLUDE_LIBRARIES=gil -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=ON -DBoost_VERBOSE=ON ..

results in this error:

CMake Error: install(EXPORT "boost_filesystem-targets" ...) includes target "boost_filesystem" which requires target "boost_atomic" that is not in any export set.

The dependency on Boost.Atomic is here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions