File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ OPTION (MSGPACK_BUILD_EXAMPLES "Build msgpack examples." ON)
8383
8484SET (Boost_USE_MULTITHREADED ON )
8585SET (Boost_USE_STATIC_RUNTIME OFF )
86- FIND_PACKAGE (Boost REQUIRED COMPONENTS chrono system timer)
86+ FIND_PACKAGE (Boost REQUIRED COMPONENTS chrono system OPTIONAL_COMPONENTS timer)
8787
8888INCLUDE_DIRECTORIES (
8989 ${Boost_INCLUDE_DIRS}
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ build_script:
4848 cd ..
4949 cd ..
5050 if ($env:msvc -ne '"Visual Studio 14 2015"') {
51- ((Get-Content CMakeLists.txt) -replace "COMPONENTS chrono system timer", "") | Set-Content -Path CMakeLists.txt
51+ ((Get-Content CMakeLists.txt) -replace "COMPONENTS chrono system OPTIONAL_COMPONENTS timer", "") | Set-Content -Path CMakeLists.txt
5252 }
5353 md build
5454 cd build
Original file line number Diff line number Diff line change @@ -22,10 +22,12 @@ IF (NOT MSVC)
2222 )
2323ENDIF ()
2424
25- LIST (APPEND with_boost_lib_PROGRAMS
26- speed_test.cpp
27- speed_test_nested_array.cpp
28- )
25+ if (Boost_TIMER_LIBRARY)
26+ LIST (APPEND with_boost_lib_PROGRAMS
27+ speed_test.cpp
28+ speed_test_nested_array.cpp
29+ )
30+ endif ()
2931
3032FOREACH (source_file ${exec_PROGRAMS} )
3133 GET_FILENAME_COMPONENT (source_file_we ${source_file} NAME_WE )
You can’t perform that action at this time.
0 commit comments