Comments (4)
I would say to update your dependency for a modern Boost. Old versions are not very interesting for a project like this. It's over 5 years old and probably doesn't support mobile platforms well or any current compilers.
Of course, feel free to fork it and change whatever is needed of course for your usecase, but it's certainly easier to update the other library than coerce Boost to work with current compilers.
For newer versions, it's usually just drop the new archive, use it and see if the tests pass, update the build scripts as necessary for new files and new required build flags.
from boost-cmake.
Yeah, I hear you! This is however exclusively for an external dependency, and I want to modify close to nothing or in "worst case" make a pull request that gets merged (private temp-fixes is not an option). I started a discussion about supporting a newer version and it wasn't out of the question, but support for boost 1.46 (!) had to be preserved. This however presumes that there aren't a lot other things to #ifndef...
That's why I hoped to just get 1.56 building first and foremost!
As you say, that version is also terribly old but this dependency on legacy boost is only for this one framework. If I ever fall into using boost myself in any project, it will of course target a modern version.
Anyways, I'll give it a try with the help of boostdep and we'll see how it goes!
from boost-cmake.
In the case of that library, a simple ifdef around the Boost version should be enough to fix it for newer versions, and I would recommend that approach.
But another approach is possible, which would be to define BOOST_THREAD_USES_DATETIME, which will re-add the missing functions back. Functionality is rarely removed from Boost and usually hidden behind some flags.
from boost-cmake.
Alright thanks, I'll take a look at it.
from boost-cmake.
Related Issues (20)
- Cannot compile boost 1.7.6 HOT 1
- as of boost 1.76.0 regex becomes header only
- Boost_INCLUDE_DIR is not getting set
- the right way to enable/disable Boost features in main CMake script?
- Doesn't work with Windows 11 and VS 22 HOT 2
- Enable /MP for parallel builds with MSVC HOT 1
- Download fails when multiple configurations are generated in parallel HOT 6
- Clarity on README installation HOT 11
- Feature Request : checking in partial boost trees. HOT 4
- Android Issues HOT 6
- Add option to support building boost dynamic library HOT 6
- "Fetching Boost" happens every time I configure HOT 1
- Usage with find_package REQUIRED etc. HOT 1
- 403 Forbidden downloading https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.bz2 HOT 9
- Changing the BOOST_URL leads to linking error HOT 3
- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR) Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
- Can I use it to cross compile boost for ARM ?
- Store result of try compile in cache variable?
- Add tags for boost versions HOT 3
- Cross compilation issue from linux to windows HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boost-cmake.