boost icon indicating copy to clipboard operation
boost copied to clipboard

[Compilation Error] Missing <boost/core/static_assert.hpp>...

Open nbooster opened this issue 3 months ago • 3 comments

Hello,

I just tried to build my C++ project again today with this on my CMake:

Include(FetchContent)

set(FETCHCONTENT_QUIET TRUE)

FetchContent_Declare(Boost
  GIT_REPOSITORY https://github.com/boostorg/boost.git
  GIT_TAG        master # Boost 1.89
  OVERRIDE_FIND_PACKAGE
  GIT_PROGRESS TRUE
)

FetchContent_MakeAvailable(Boost)

and I got this:

/boost-src/libs/url/include/boost/url/grammar/charset.hpp:15:10: fatal error: boost/core/static_assert.hpp: No such file or directory
   15 | #include <boost/core/static_assert.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Does this look familiar or is t's just me ?

*If I switch the GIT_TAG from master to --> boost-1.89.0 everything builds ok...

Thank You.

nbooster avatar Oct 26 '25 10:10 nbooster

Having the same issue. It looks like this commit broke the other non-core libs.

oliverportcnc avatar Oct 30 '25 13:10 oliverportcnc

This is not accurate:

GIT_TAG master # Boost 1.89

It might say:

GIT_TAG boost-1.89.0 # Boost 1.89

or:

GIT_TAG master # pre-release, changing, 1.90

sdarwin avatar Oct 30 '25 14:10 sdarwin

It was just a comment to indicate the current master version... Anyway, it looks like the master branch compiles with no errors now (I just tested again right now). Please confirm... You can close the issue if you like... (I hope it stays that way...)

nbooster avatar Oct 30 '25 14:10 nbooster