Skip to content

Commit f7ca5e3

Browse files
authored
Merge pull request resiprocate#417 from mykhailopopivniak/monotonic_clock
rutil: Add option to enable monotonic clock (_RESIP_MONOTONIC_CLOCK)
2 parents c53d5b0 + 4f56595 commit f7ca5e3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rutil/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,10 @@ target_add_conditional_sources(rutil WIN32
225225

226226
# %HOME...%\source\repos\resiprocate\builds\packages\zeroc.openssl.v142\build\native\bin\x64\Debug
227227

228-
# Enable MONOTONIC clock for rutil
229-
add_definitions(-D_RESIP_MONOTONIC_CLOCK)
228+
option(USE_MONOTONIC_CLOCK "Enable monotonic clock" ON)
229+
if(USE_MONOTONIC_CLOCK)
230+
add_definitions(-D_RESIP_MONOTONIC_CLOCK)
231+
endif()
230232

231233
target_compile_features(rutil PUBLIC cxx_std_11)
232234

0 commit comments

Comments
 (0)