Skip to content

boost::serialization seems to be a hard dependency, but cmake configure passes without #325

@mbanck

Description

@mbanck

I got cmake configure to pass, but then bail out at generate:

-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.33")  
-- Performing Test BOOST_COMPILES
-- Performing Test BOOST_COMPILES - Success
[...]
-- The following REQUIRED packages have been found:

 * Threads
 * boost_headers (required version == 1.74.0)
 * Boost (required version >= 1.33)
[...]
-- Configuring done
[...]
CMake Error at src/CMakeLists.txt:229 (add_library):
  Target "tiledarray" links to target "Boost::serialization" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

CMakeCache has:

//The directory containing a CMake configuration file for boost_serialization.
boost_serialization_DIR:PATH=boost_serialization_DIR-NOTFOUND

So I think there should be a stricter check for boost::serialization (or the generation should be changed, if that is not required).

When I install the corresponding Debian package, cmake runs fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions