boostorg / cmake

CMake support infrastructure Boost submodule
87 stars 26 forks source link

heap do not appear in built include #70

Closed biggiantpigeon closed 2 months ago

biggiantpigeon commented 2 months ago

Hello, I'm trying to use cmake to build boost, further use it in my ownproject. Then I find module heap although pulled as submodule in libs, but not appear in include folder after my build and install. I can sure copy it from your released pre-built version, but I want to solve this in an elegant way. Any suggestions?

pdimov commented 2 months ago

What Boost version?

biggiantpigeon commented 2 months ago

What Boost version?

1.82.0

pdimov commented 2 months ago

Does the issue still persist in newer versions, such as for instance 1.85.0?

pdimov commented 2 months ago

How does your project use Boost? Do you use CMake to build and install Boost first, or do you build Boost as a subproject, using add_subdirectory?

biggiantpigeon commented 2 months ago

Does the issue still persist in newer versions, such as for instance 1.85.0?

I'll tried, it's the same for 1.85.0.

How does your project use Boost? Do you use CMake to build and install Boost first, or do you build Boost as a subproject, using add_subdirectory?

I did the 'build and install' first.

By the way, I choose only these libraries to build:

-DBOOST_INCLUDE_LIBRARIES="filesystem;chrono;thread;system;atomic;date_time;math;graph;program_options"

will that be the reason? If it is, what option can I add to solve this, considering I want to keep my built output as small as possible? Thanks.

pdimov commented 2 months ago

You would need to add heap to the list if you need it to be installed.

biggiantpigeon commented 2 months ago

yes, it works now, thanks a lot.