boost.cmake 970 Bytes
Newer Older
1
2
3
4
5
6
7
8
set (boost_toolset "")
set (boost_osx_opts "")
if (APPLE)
  set (boost_toolset "--with-toolset=clang")
  set (boost_osx_opts "toolset=clang cxxflags=\"-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}\" cflags=\"-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}\"")
  message(STATUS "${boost_osx_opts}")
 #macosx-version=${CMAKE_OSX_DEPLOYMENT_TARGET} macosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}")
endif(APPLE)
9
10
11
add_external_project_or_use_system(boost
  BUILD_IN_SOURCE 1
  CONFIGURE_COMMAND
12
    <SOURCE_DIR>/bootstrap.sh ${boost_toolset} --prefix=<INSTALL_DIR>
Bastien Jacquet's avatar
Bastien Jacquet committed
13
                              --with-libraries=date_time,thread,regex,system,program_options,filesystem,iostreams,chrono
14
15
  BUILD_COMMAND <SOURCE_DIR>/bjam address-model=${VV_BUILD_ARCHITECTURE} threading=multi --with-regex --with-system --with-date_time --with-program_options --with-iostreams --with-filesystem --with-thread ${boost_osx_opts} --prefix=<INSTALL_DIR> install
  INSTALL_COMMAND ""
16
)