426 Commits

Author SHA1 Message Date
Peter Dimov 85e1406a57 Update Boost version boost-1.80.0 boost-1.80.0.beta1 2022-04-14 11:38:38 +03:00
Peter Dimov d819e4151c Add VS2022 to BoostDetectToolset.cmake; fixes #59 boost-1.79.0.beta1 boost-1.79.0 2022-02-12 18:57:24 +02:00
Peter Dimov a2fa153614 Update ci.yml 2022-02-12 10:25:18 +02:00
Peter Dimov cf98eed5c8 Merge branch 'fix-clang-ms-abi' of https://github.com/cdglove/boost_install into feature/pr-57 2022-01-18 03:55:46 +02:00
Peter Dimov 06863e5bc9 Add a clang-cl job to appveyor.yml 2022-01-18 03:02:12 +02:00
Chris Glover 85cb56a87e Detect clangw toolset when using any clang with the ms-abi
When compiling with clang, cmake only sets MSVC when using clang-cl as
it's meant as an indication of cl.exe command line compatibility.

In this case, if one is using clang++ with the ms-abi, cmake
incorrectly takes the else branch here and library detection fails.

If instead we use MSVC_VERSION, which is empty unless a compiler
with _MSC_VER set is being used, then we get the correct behaviour.

https://cmake.org/cmake/help/latest/variable/MSVC.html

https://cmake.org/cmake/help/latest/variable/MSVC_VERSION.html
2022-01-17 22:21:25 +00:00
Peter Dimov f23b121b3d Set IMPORTED_LOCATION to the .dll file (refs #56) 2021-12-31 02:21:46 +02:00
Peter Dimov 83eac82da9 Update Boost version 2021-12-09 04:05:06 +02:00
Peter Dimov 1e63a0a86b Enable Boost::dynamic_linking target as well boost-1.78.0.beta1 boost-1.78.0 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
Peter Dimov 258f7866c1 Do not define BOOST_ALL_NO_LIB in the library targets; define BOOST_LIBNAME_NO_LIB 2021-11-03 01:49:16 +02:00
Peter Dimov 0605dadfac Merge pull request #53 from shr-project/jansa/python-3.10
BoostConfig.cmake: allow searching for python310
2021-10-19 17:56:31 +03: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
Peter Dimov fb27358cbb Merge branch 'patch-1' of https://github.com/traversaro/boost_install into feature/pr-52 2021-08-17 16:25:22 +03:00
Peter Dimov 1030b2c4c1 Add a test with lib=headers using staged (implicitly tests CONFIG) 2021-08-17 15:57:28 +03:00
Peter Dimov e3584aef65 Test cmake_minimum_required(3.2) in test/headers (refs #52) 2021-08-17 15:19:04 +03:00
Peter Dimov 063988d347 Update BoostDetectedToolset.cmake 2021-08-17 15:06:17 +03:00
Peter Dimov 17cb22ca9c Update ci.yml 2021-08-17 14:42:44 +03:00
Peter Dimov ff171f591f Update Boost version 2021-08-17 14:03:18 +03: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 047edbaab4 Update Boost version boost-1.77.0.beta1 boost-1.77.0 2021-04-17 19:11:36 +03:00
Peter Dimov c1878b042c Mark variables as advanced before returning boost-1.76.0 boost-1.76.0.beta1 2021-01-11 18:51:03 +02:00
Peter Dimov bb5d73526d Update ci.yml 2020-12-23 07:16:50 +02:00
Peter Dimov 7b3fc73424 Only link to non-Boost dependencies when link=static (refs #47) 2020-12-23 03:31:45 +02:00
Peter Dimov 7a80782d91 Remove unnecessary python job 2020-12-23 03:00:45 +02:00
Peter Dimov 39ba0eb829 Try with 3.7;EXACT 2020-12-23 02:46:02 +02:00
Peter Dimov 59658b2aa5 Try with 3.7 EXACT 2020-12-23 02:26:53 +02:00
Peter Dimov 0c5bd68867 Add a user-config for the python configurations 2020-12-23 02:07:12 +02:00
Peter Dimov 4391aadaea Try python=3.9 2020-12-23 01:57:31 +02:00
Peter Dimov 4d48eeae5f Force python 3.7 because that's what b2 finds 2020-12-23 01:38:35 +02:00
Peter Dimov e9e7dafa14 Add .dll directories to PATH 2020-12-23 01:15:38 +02:00
Peter Dimov 4a24619914 Add more Windows configurations 2020-12-23 01:06:00 +02:00
Peter Dimov 63ab0d1099 Remove failing python configuration 2020-12-23 00:42:55 +02:00
Peter Dimov 429a89dc88 Add USE_ALL_COMPONENTS=1 tests 2020-12-23 00:16:44 +02:00
Peter Dimov a0d07f286f Add more python configurations 2020-12-23 00:14:11 +02:00
Peter Dimov f3f0c5ab50 Install libpython2-dev for mpi; use python=2.7,3.8 for python 2020-12-22 23:47:02 +02:00
Peter Dimov 8c96bb5b93 Install libopenmpi-dev, libpython2-dev, libpython3-dev 2020-12-22 21:54:18 +02:00
Peter Dimov a6a8904cfb Add using mpi ;; update LD_LIBRARY_PATH 2020-12-22 21:43:37 +02:00
Peter Dimov b67938e413 Update staged jobs 2020-12-22 21:29:31 +02:00
Peter Dimov dfc3e2d411 Fix clang version 2020-12-22 21:22:04 +02:00
Peter Dimov 87284a5efa Add more posix entries 2020-12-22 21:16:50 +02:00
Peter Dimov 8cb08db5ea Set toolset=gcc for mingw 2020-12-22 20:53:44 +02:00
Peter Dimov b6a16de1db Fix stray %LIB% reference 2020-12-22 20:45:56 +02:00
Peter Dimov 6f0d3b509a Use -d0 for --with-headers 2020-12-22 20:36:57 +02:00
Peter Dimov 4c33c9c38e Add .github/workflows 2020-12-22 20:29:12 +02:00
Peter Dimov 90df96bd22 Update Boost version 2020-12-14 03:35:20 +02:00
Peter Dimov 7bae360d46 Fix typo boost-1.75.0.beta1 boost-1.75.0 2020-10-21 14:37:35 +03:00
Peter Dimov 61ee737b44 Install .pdb files (by not using package.install) 2020-10-03 18:18:00 +03:00
Peter Dimov 3e6c7e5371 Fix single config generators; remap library names 2020-10-02 01:28:47 +03:00
Peter Dimov 0669e214c0 Test static linking for iostreams, log 2020-10-01 21:03:20 +03:00