Skip to content

Commit 3d0fa60

Browse files
committed
Merge branch 'ci' of https://github.com/herbrechtsmeier/msgpack-c into herbrechtsmeier-ci
2 parents 8833819 + ee169c4 commit 3d0fa60

File tree

5 files changed

+17
-12
lines changed

5 files changed

+17
-12
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ install:
2727
# valgrind
2828
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then wget http://valgrind.org/downloads/valgrind-3.12.0.tar.bz2 && tar xjf valgrind-3.12.0.tar.bz2 && cd valgrind-3.12.0 && ./configure --prefix=${BASE}/usr > /dev/null && make -j3 > /dev/null && make install > /dev/null && cd ..; fi
2929
# boost
30-
- if [ "$BOOST" == "ON" ]; then wget http://sourceforge.net/projects/boost/files/boost/1.63.0/boost_1_63_0.zip && unzip -q boost_1_63_0.zip && cd boost_1_63_0 && ./bootstrap.sh && ./b2 -j3 --prefix=${BASE}/usr --with-timer --with-chrono address-model=${ARCH} install > /dev/null && cd ..; fi
30+
- if [ "$BOOST" == "ON" ]; then wget http://sourceforge.net/projects/boost/files/boost/1.63.0/boost_1_63_0.zip && unzip -q boost_1_63_0.zip && cd boost_1_63_0 && ./bootstrap.sh && ./b2 -j3 --prefix=${BASE}/usr --with-chrono --with-context --with-system --with-timer address-model=${ARCH} install > /dev/null && cd ..; fi
3131

3232
matrix:
3333
include:

CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,13 @@ IF (MSGPACK_BOOST)
9494
SET (CMAKE_CXX_FLAGS "-DMSGPACK_USE_BOOST ${CMAKE_CXX_FLAGS}")
9595
SET (Boost_USE_MULTITHREADED ON)
9696
SET (Boost_USE_STATIC_RUNTIME OFF)
97-
FIND_PACKAGE (Boost COMPONENTS chrono context timer system)
98-
IF (Boost_INCLUDE_DIRS)
99-
INCLUDE_DIRECTORIES (
100-
${Boost_INCLUDE_DIRS}
97+
FIND_PACKAGE (Boost REQUIRED COMPONENTS chrono context system timer)
98+
INCLUDE_DIRECTORIES (
99+
${Boost_INCLUDE_DIRS}
100+
)
101+
LINK_DIRECTORIES (
102+
${Boost_LIBRARY_DIRS}
101103
)
102-
ENDIF ()
103104
IF (MSGPACK_BOOST_DIR)
104105
INCLUDE_DIRECTORIES (
105106
${MSGPACK_BOOST_DIR}

appveyor.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
version: 2.1.0.{build}
22

3+
image:
4+
- Visual Studio 2015
35
environment:
6+
global:
7+
BOOST_ROOT: C:\Libraries\boost_1_60_0
48
matrix:
59
- cpp11: -DMSGPACK_CXX11=OFF
6-
boost: -DMSGPACK_BOOST=ON
10+
boost: -DMSGPACK_BOOST=OFF
711
msvc: '"Visual Studio 10 2010"'
812
- cpp11: -DMSGPACK_CXX11=OFF
9-
boost: -DMSGPACK_BOOST=ON
13+
boost: -DMSGPACK_BOOST=OFF
1014
msvc: '"Visual Studio 11 2012"'
1115
- cpp11: -DMSGPACK_CXX11=OFF
12-
boost: -DMSGPACK_BOOST=ON
16+
boost: -DMSGPACK_BOOST=OFF
1317
msvc: '"Visual Studio 12 2013"'
1418
- cpp11: -DMSGPACK_CXX11=ON
1519
boost: -DMSGPACK_BOOST=ON
@@ -46,7 +50,7 @@ build_script:
4650
- cd ..
4751
- md build
4852
- cd build
49-
- cmake -G %msvc% %cpp11% %boost% %x3_parse% -DMSGPACK_BOOST_DIR=C:\Libraries\\boost_1_60_0 -DGTEST_LIBRARY=%APPVEYOR_BUILD_FOLDER%\googletest-release-1.7.0\build\Release\gtest.lib -DGTEST_MAIN_LIBRARY=%APPVEYOR_BUILD_FOLDER%\googletest-release-1.7.0\build\Release\gtest_main.lib -DGTEST_INCLUDE_DIR=%APPVEYOR_BUILD_FOLDER%\googletest-release-1.7.0\include -DZLIB_LIBRARY=%APPVEYOR_BUILD_FOLDER%\zlib-1.2.11\build\Release\zlib.lib -DZLIB_INCLUDE_DIR=%APPVEYOR_BUILD_FOLDER%\zlib-1.2.11 -DCMAKE_CXX_FLAGS='"/D_VARIADIC_MAX=10 /EHsc"' ..
53+
- cmake -G %msvc% %cpp11% %boost% %x3_parse% -DGTEST_LIBRARY=%APPVEYOR_BUILD_FOLDER%\googletest-release-1.7.0\build\Release\gtest.lib -DGTEST_MAIN_LIBRARY=%APPVEYOR_BUILD_FOLDER%\googletest-release-1.7.0\build\Release\gtest_main.lib -DGTEST_INCLUDE_DIR=%APPVEYOR_BUILD_FOLDER%\googletest-release-1.7.0\include -DZLIB_LIBRARY=%APPVEYOR_BUILD_FOLDER%\zlib-1.2.11\build\Release\zlib.lib -DZLIB_INCLUDE_DIR=%APPVEYOR_BUILD_FOLDER%\zlib-1.2.11 -DCMAKE_CXX_FLAGS='"/D_VARIADIC_MAX=10 /EHsc"' ..
5054
- cmake --build . --config Release
5155

5256
test_script:

example/cpp03/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ IF (NOT MSVC)
2222
)
2323
ENDIF ()
2424

25-
IF (Boost_TIMER_LIBRARY AND Boost_CHRONO_LIBRARY AND Boost_SYSTEM_LIBRARY)
25+
IF (MSGPACK_BOOST)
2626
LIST (APPEND with_boost_lib_PROGRAMS
2727
speed_test.cpp
2828
speed_test_nested_array.cpp

example/x3/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ IF (MSGPACK_USE_X3_PARSE)
77
unpack.cpp
88
parse.cpp
99
)
10-
IF (Boost_CONTEXT_LIBRARY AND Boost_SYSTEM_LIBRARY AND CMAKE_THREAD_LIBS_INIT)
10+
IF (MSGPACK_BOOST)
1111
LIST (APPEND with_boost_PROGRAMS
1212
stream_unpack.cpp
1313
)

0 commit comments

Comments
 (0)