Skip to content

Instantly share code, notes, and snippets.

@mloskot
Last active October 23, 2019 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mloskot/701bc4e17d0eb318e9e39780089c194b to your computer and use it in GitHub Desktop.
Save mloskot/701bc4e17d0eb318e9e39780089c194b to your computer and use it in GitHub Desktop.
Generate VS solution with CMake 3.14 for Boost.GIL using staged Boost

Follow https://github.com/boostorg/gil/blob/develop/CONTRIBUTING.md#using-cmake

D:\boost.win (develop -> origin)
λ .\b2 -j8 toolset=msvc-14.1 variant=debug,release address-model=64 --layout=versioned --with-test --with-filesystem stage
D:\boost.win\libs\gil\_build.vs (develop -> origin)
λ cd libs\gil
D:\boost.win\libs\gil\_build.vs (develop -> origin)
λ mkdir _build.vs2017
D:\boost.win\libs\gil\_build.vs2017 (develop -> origin)
λ cmake -G "Visual Studio 15 2017 Win64" -DGIL_ENABLE_EXT_IO=OFF ..
-- The CXX compiler identification is MSVC 19.16.27034.0
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost.GIL: Version 2.2
-- Boost.GIL: Require C++11
-- Boost.GIL: Looking for Boost from current source tree and libraries from stage.
-- Boost.GIL: Disable stage look-up with passing -DBOOST_ROOT=/path/to/your/boost.
-- Boost.GIL: Using Boost libraries from stage directory in BOOST_ROOT=D:/boost.win
CMake Warning at C:/Program Files/CMake/share/cmake-3.15/Modules/FindBoost.cmake:1144 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.15/Modules/FindBoost.cmake:1266 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.15/Modules/FindBoost.cmake:1904 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:119 (find_package)


CMake Warning at C:/Program Files/CMake/share/cmake-3.15/Modules/FindBoost.cmake:1144 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.15/Modules/FindBoost.cmake:1266 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.15/Modules/FindBoost.cmake:1904 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:119 (find_package)


-- Found Boost: D:/boost.win (found suitable version "1.72.0", minimum required is "1.68.0") found components:  filesystem unit_test_framework
-- Boost.GIL: Using Boost_INCLUDE_DIRS=D:/boost.win
-- Boost.GIL: Using Boost_LIBRARY_DIRS=D:/boost.win/stage/lib
-- Boost.GIL: Configuring tests in test/core
-- Boost.GIL: Configuring tests in test/legacy
-- Boost.GIL: Configuring tests in test/extension/dynamic_image
-- Boost.GIL: Configuring tests in test/extension/numeric
-- Boost.GIL: Configuring tests in test/extension/toolbox
-- Configuring done
-- Generating done
-- Build files have been written to: D:/boost.win/libs/gil/_build.vs2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment