-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathExternal-Boost.cmake
53 lines (48 loc) · 1.39 KB
/
External-Boost.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#---------------------------------------------------------------------------
# Get and build boost
message( "External project - Boost" )
set( Boost_Bootstrap_Command )
if( UNIX )
set( Boost_Bootstrap_Command ./bootstrap.sh )
set( Boost_b2_Command ./b2 )
else()
if( WIN32 )
set( Boost_Bootstrap_Command bootstrap.bat )
set( Boost_b2_Command b2.exe )
endif()
endif()
ExternalProject_Add(boost
URL "http://dl.dropbox.com/u/15135983/boost.tar.gz"
URL_MD5 66f100a77f727e21d67fefd1827b6c64
BUILD_IN_SOURCE 1
UPDATE_COMMAND ""
PATCH_COMMAND ""
CONFIGURE_COMMAND ${Boost_Bootstrap_Command}
BUILD_COMMAND ${Boost_b2_Command} install
--without-python
--without-mpi
--disable-icu
--prefix=${CMAKE_BINARY_DIR}/INSTALL
--threading=single,multi
--link=shared
--variant=release
-j8
INSTALL_COMMAND ""
# INSTALL_COMMAND ${Boost_b2_Command} install
# --without-python
# --without-mpi
# --disable-icu
# --prefix=${CMAKE_BINARY_DIR}/INSTALL
# --threading=single,multi
# --link=shared
# --variant=release
# -j8
INSTALL_DIR ${CMAKE_BINARY_DIR}/INSTALL
)
if( NOT WIN32 )
set(Boost_LIBRARY_DIR ${CMAKE_BINARY_DIR}/INSTALL/lib/boost/ )
set(Boost_INCLUDE_DIR ${CMAKE_BINARY_DIR}/INSTALL/include/ )
else()
set(Boost_LIBRARY_DIR ${CMAKE_BINARY_DIR}/INSTALL/lib/ )
set(Boost_INCLUDE_DIR ${CMAKE_BINARY_DIR}/INSTALL/include/boost-1_49/ )
endif()