Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flexisip
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
flexisip
Commits
80c61b72
Commit
80c61b72
authored
Mar 17, 2016
by
Guillaume BIENKOWSKI
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add check to detect if system has steady clock or not
parent
2fa6eef9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
CMakeLists.txt
CMakeLists.txt
+18
-1
No files found.
CMakeLists.txt
View file @
80c61b72
...
...
@@ -34,6 +34,7 @@ include(CMakeDependentOption)
include
(
CheckSymbolExists
)
include
(
CheckFunctionExists
)
include
(
FeatureSummary
)
include
(
CheckCXXSourceCompiles
)
option
(
ENABLE_BOOSTLOG
"Build boost log support"
YES
)
option
(
ENABLE_DATEHANDLER
"Build DateHandler module"
NO
)
...
...
@@ -108,7 +109,23 @@ endif()
check_function_exists
(
arc4random HAVE_ARC4RANDOM
)
find_file
(
HAVE_SYS_PRCTL_H NAMES sys/prctl.h
)
# TODO: check monotonic clock support (we expect yes) see configure.ac
check_cxx_source_compiles
(
"#include <chrono>
using namespace ::std;
using namespace chrono;
steady_clock::time_point test;
int main() { return 0;}
"
HAS_STEADY_CLOCK
)
set
(
CMAKE_REQUIRED_LIBRARIES
)
if
(
HAS_STEADY_CLOCK
)
message
(
STATUS
"System has steady clock."
)
else
()
message
(
STATUS
"System doesn't have steady clock. Use monotonic instead."
)
add_definitions
(
-DUSE_MONOTONIC_CLOCK
)
endif
()
# Options
if
(
ENABLE_ODB
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment