File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
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 @@ -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