26 Commits

Author SHA1 Message Date
Peter Dimov
1e63a0a86b Enable Boost::dynamic_linking target as well 2021-11-03 02:41:07 +02:00
Peter Dimov
1dfb9c2872 Enable Boost::disable_autolinking and Boost::diagnostic_definitions, as BOOST_ALL_NO_LIB is no longer defined by the targets 2021-11-03 01:49:59 +02:00
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
Silvio Traversaro
4009ed07e7 Find find_package(Boost CONFIG) if cmake_minimum_required is <= 3.2 2021-07-17 18:12:07 +02:00
Peter Dimov
601755f2e8 Use QUIET when finding ALL components 2020-04-24 15:10:16 +03:00
Peter Dimov
7d2b3bf3a2 Add support for Boost_PYTHON_VERSION_MAJOR 2020-03-07 17:49:55 +02:00
Peter Dimov
c7a4270a90 Change Boost_USE_MULTITHREADED to default to ON 2020-02-28 19:22:02 +02:00
Peter Dimov
69e6eafca2 Change WARNING to AUTHOR_WARNING 2020-01-10 06:15:20 +02:00
Peter Dimov
4ecba347b2 Tweak handling of ALL 2020-01-07 18:43:54 +02:00
Deniz Bahadir
4a24a713bd Add (meta-)component "ALL" for searching all (available) components.
* This new meta-component instructs BoostConfig.cmake to parse its
  parent-directory for installed Boost components and will provide
  imported targets for them as if they were listed as components in the
  call to `find_package`.
* If this new component is used it has to be the only component
  provided to the `find_package` call.
* If another component is provided together with the "ALL" component a
  non-fatal error will be triggered (with a hint for how to fix that
  error) but the script will continue looking for all components,
  ignoring that additional component.
  However, as typical for non-fatal errors CMake configuration will
  still fail in the end.
* If BoostConfig.cmake was triggered by FindBoost.cmake with that
  meta-component it will continue to work as if `find_package` was
  called in config mode, but FindBoost.cmake might print a warning if
  either `Boost_DEBUG` or `Boost_VERBOSE` was set.
2019-11-05 17:23:03 +01:00
Peter Dimov
b509998fb6 Document Boost_USE_MULTITHREADED 2019-09-20 17:13:23 +03:00
Peter Dimov
a105063c02 Add mpi_python to versioned components; closes #11 2019-06-12 20:14:26 +03:00
Peter Dimov
dcd92dc506 set Boost_LIBRARIES to '' instead of unsetting it 2019-06-07 17:58:26 +03:00
Peter Dimov
daa6552eae Add versioned targets (Boost::python27) for compatibility 2019-06-06 19:20:44 +03:00
Peter Dimov
56e203e248 Set _FOUND variables properly for versioned components 2019-06-06 01:51:43 +03:00
Peter Dimov
367e177c1a Add support for versioned python/numpy components 2019-06-05 19:12:36 +03:00
Peter Dimov
c010d47392 Add compatibility version variables 2019-05-25 03:29:49 +03:00
Peter Dimov
cfa8d55250 Set Boost_INCLUDE_DIRS, Boost_LIBRARIES, Boost_<C>_LIBRARY 2019-05-09 19:16:20 +03:00
Peter Dimov
7798754624 Document new static/shared behavior 2019-05-02 02:19:20 +03:00
Peter Dimov
bda1128d2e Merge branch 'feature/fphsa-variables' into develop 2019-04-19 06:24:06 +03:00
Peter Dimov
05ed67bf56 Set Boost_<cmp>_FOUND for FindPackageHandleStandardArgs compatibility 2019-04-19 01:31:42 +03:00
Peter Dimov
4bf56cc76f Disable all status messages unless Boost_VERBOSE is set 2019-04-18 21:33:54 +03:00
Peter Dimov
0e3f9e33d6 Document Boost_PYTHON_VERSION in BoostConfig.cmake 2019-04-16 06:01:55 +03:00
Peter Dimov
b1e5c9117a Add descriptive comments to BoostConfig.cmake 2019-03-07 17:47:58 +02:00
Peter Dimov
615f1c4511 Remove cmake_minimum_required calls from config files 2019-01-11 18:41:34 +02:00
Peter Dimov
12c31a4aea Add BoostConfig.cmake 2019-01-10 21:04:17 +02:00