Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CMake] Add minimal cmake support #106

Merged
merged 2 commits into from Apr 15, 2019

Conversation

@Mike-Devel
Copy link
Contributor

commented Mar 8, 2019

Functionality:

  • CMake file only supports add_subdirectory workflow.
  • Compiles boost filesystem (without name mangling).
  • Provides target Boost::filesystem to link against.
  • Does NOT compile/run unit tests (yet) and
    doesn't support installation.

For basic testing:

  1. Make sure you have checked out the latest (develop) version of all other boost libraries you are depending on (directly or indirectly) into sibling folders of this library (e.g. recursively check out boostorg/boost).

  2. Copy a file like this: https://github.com/Mike-Devel/boost/blob/boost_cmake_demo/CMakeLists.txt into the boost root directory. Essentially, that file will simply call add_subdirectory( ) on all boost libraries with a cmake file to make sure all dependencies are known to cmake. However, it will also ignore some libraries that are known to be troublesome with the add_subdirectory workflow.

  3. Then (from boost root)

      mkdir __build__ && cd __build__
      cmake ..
      cmake --build libs/filesystem
    
[CMake] Add minimal cmake support
- CMake file only supports add_subdirectory workflow.
- Compiles boost filesystem (without name mangling).
- Provides target Boost::filesystem to link against.
- Does NOT compile/run unit tests (yet) and
  doesn't support installation.
@Lastique

This comment has been minimized.

Copy link
Member

commented Apr 14, 2019

Dependency on Boost.WinAPI is missing.

@Mike-Devel

This comment has been minimized.

Copy link
Contributor Author

commented Apr 15, 2019

Thanks for spotting this. Must have forgotten the --track-sources option when checking with boostdep

@Lastique Lastique merged commit 1bcf925 into boostorg:develop Apr 15, 2019

0 of 2 checks passed

continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
Details
continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
@Lastique

This comment has been minimized.

Copy link
Member

commented Apr 15, 2019

Thanks.

@Mike-Devel Mike-Devel deleted the Mike-Devel:min_cmake branch Apr 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.