https://github.com/bringauto/boost-cmake-build
Boost build by CMake
https://github.com/bringauto/boost-cmake-build
Last synced: 4 months ago
JSON representation
Boost build by CMake
- Host: GitHub
- URL: https://github.com/bringauto/boost-cmake-build
- Owner: bringauto
- License: mit
- Created: 2022-03-26T21:35:35.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2025-02-27T16:09:33.000Z (over 1 year ago)
- Last Synced: 2025-02-27T22:48:54.883Z (over 1 year ago)
- Language: CMake
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Boost build by CMake
## Requirements:
- CMake >= 3.18
- Standard build tools needed for Boost build
## CMD Line Arguments
Specified in [CMakeLists.txt]
## Cross-compile
Activating cross-compile toolchain sets CMAKE_TOOLCHAIN_FILE, which then sets necessary CMAKE variables.
Important variables for Boost build are:
- **CMAKE_SYSTEM_NAME**: Target system name, if set, `CMAKE_CROSSCOMPILING` is set to `TRUE`.
- **CMAKE_SYSTEM_PROCESSOR**: Target system processor name.
- **CMAKE_CXX_COMPILER**: Target system CXX compiler.
- **CMAKE_SYSROOT**: Target system sysroot.
To configure compiler for `b2` command, configuring creates a `user-config.jam` file, defining CXX compiler for arm processor.
[CMakeLists.txt]: ./CMakeLists.txt