mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-06-01 21:03:41 +02:00
Implement issue #923: Make boost timer optional
This commit is contained in:
parent
44aa90eb50
commit
04726a5acf
@ -83,7 +83,7 @@ OPTION (MSGPACK_BUILD_EXAMPLES "Build msgpack examples." ON)
|
|||||||
|
|
||||||
SET (Boost_USE_MULTITHREADED ON)
|
SET (Boost_USE_MULTITHREADED ON)
|
||||||
SET (Boost_USE_STATIC_RUNTIME OFF)
|
SET (Boost_USE_STATIC_RUNTIME OFF)
|
||||||
FIND_PACKAGE (Boost REQUIRED COMPONENTS chrono system timer)
|
FIND_PACKAGE (Boost REQUIRED COMPONENTS chrono system OPTIONAL_COMPONENTS timer)
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES (
|
INCLUDE_DIRECTORIES (
|
||||||
${Boost_INCLUDE_DIRS}
|
${Boost_INCLUDE_DIRS}
|
||||||
|
@ -22,10 +22,12 @@ IF (NOT MSVC)
|
|||||||
)
|
)
|
||||||
ENDIF ()
|
ENDIF ()
|
||||||
|
|
||||||
LIST (APPEND with_boost_lib_PROGRAMS
|
if (Boost_TIMER_LIBRARY)
|
||||||
speed_test.cpp
|
LIST (APPEND with_boost_lib_PROGRAMS
|
||||||
speed_test_nested_array.cpp
|
speed_test.cpp
|
||||||
)
|
speed_test_nested_array.cpp
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
FOREACH (source_file ${exec_PROGRAMS})
|
FOREACH (source_file ${exec_PROGRAMS})
|
||||||
GET_FILENAME_COMPONENT (source_file_we ${source_file} NAME_WE)
|
GET_FILENAME_COMPONENT (source_file_we ${source_file} NAME_WE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user