Skip to content

Commit

Permalink
Skip chapter 8, recipe 2 with Visual Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
robertodr committed Aug 7, 2018
1 parent bb08635 commit 6a33cea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,10 @@ else()
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Intel")
set(_toolset "intel")
set(_cxx_std_flag "-std=c++11")
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
set(_toolset "msvc")
set(_cxx_std_flag "/EHc /std:c++14")
endif()

if(MSVC)
set(_bootstrap "bootstrap.bat")
set(_b2 "b2.exe")
else()
set(_bootstrap "bootstrap.sh")
set(_b2 "b2")
endif()

if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(_address_model 64)
else()
set(_address_model 32)
endif()
set(_bootstrap "bootstrap.sh")
set(_b2 "b2")

# Non-empty list. Compiled libraries needed
if(NOT "${BOOST_COMPONENTS_REQUIRED}" STREQUAL "")
Expand Down Expand Up @@ -80,9 +66,7 @@ else()
${_bootstrap_select_libraries}
BUILD_COMMAND
<SOURCE_DIR>/${_b2} -q
address-model=${_address_model}
link=shared
runtime-link=shared
threading=multi
variant=release
toolset=${_toolset}
Expand All @@ -92,18 +76,16 @@ else()
1
INSTALL_COMMAND
<SOURCE_DIR>/${_b2} -q install
address-model=${_address_model}
link=shared
runtime-link=shared
threading=multi
variant=release
toolset=${_toolset}
${_b2_select_libraries}
${_build_user_config_args}
#LOG_BUILD
# 1
#LOG_INSTALL
# 1
LOG_BUILD
1
LOG_INSTALL
1
BUILD_BYPRODUCTS
"${_build_byproducts}"
)
Expand Down
4 changes: 2 additions & 2 deletions chapter-08/recipe-02/cxx-example/menu.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
appveyor-vs:
definitions:
- Boost_FORCE_SUPERBUILD: 'ON'
skip_generators:
- 'Visual Studio 15 2017 Win64'

appveyor-msys:
definitions:
Expand Down

0 comments on commit 6a33cea

Please sign in to comment.