Martin Jansa e193f080c7 BoostConfig.cmake: allow searching for python310
* accept double digits in Python3_VERSION_MINOR

* if someone is using e.g.:
  find_package(Python3 REQUIRED)
  find_package(Boost REQUIRED python${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR})

  with python-3.10 then it currently fails with:

  -- Found PythonLibs: /usr/lib/libpython3.10.so (found version "3.10.0")
  -- Found Python3: -native/usr/bin/python3-native/python3 (found version "3.10.0") found components: Interpreter
  CMake Error at /usr/lib/cmake/Boost-1.77.0/BoostConfig.cmake:141 (find_package):
    Could not find a package configuration file provided by "boost_python310"
    (requested version 1.77.0) with any of the following names:

      boost_python310Config.cmake
      boost_python310-config.cmake

    Add the installation prefix of "boost_python310" to CMAKE_PREFIX_PATH or
    set "boost_python310_DIR" to a directory containing one of the above files.
    If "boost_python310" provides a separate development package or SDK, be
    sure it has been installed.
  Call Stack (most recent call first):
    /usr/lib/cmake/Boost-1.77.0/BoostConfig.cmake:258 (boost_find_component)
    /usr/share/cmake-3.21/Modules/FindBoost.cmake:594 (find_package)
    CMakeLists.txt:18 (find_package)

Signed-off-by: Martin Jansa <martin.jansa@lge.com>
2021-10-19 12:28:30 +00:00
2020-04-15 20:39:42 +03:00
2018-10-05 20:42:57 +03:00

boost_install

This repository contains the implementation of the boost-install rule. This rule, when called from a library Jamfile, creates an install target that installs the library and its CMake configuration file. It also invokes the install targets of its dependencies.

Description
Mirrored via gitea-mirror
Readme 2.3 MiB
Languages
PostScript 45.2%
C 35.7%
Assembly 4.4%
HTML 4%
Ada 2.3%
Other 8.3%