diff options
author | Brent Cook <busterb@gmail.com> | 2019-01-31 10:00:48 -0600 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2019-01-31 13:56:56 -0600 |
commit | 5269dbb2792fe5baf239e13f36352142364e1581 (patch) | |
tree | a6e612ebf2c0d2afb8235fbd8b90d420bf186c9e /CMakeLists.txt | |
parent | a6d7ea956290470254e817adb2f6a3fac9397a17 (diff) | |
download | portable-5269dbb2792fe5baf239e13f36352142364e1581.tar.gz portable-5269dbb2792fe5baf239e13f36352142364e1581.tar.bz2 portable-5269dbb2792fe5baf239e13f36352142364e1581.zip |
update cmake
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 46e01ae..4d54ada 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -237,6 +237,21 @@ if(HAVE_GETPAGESIZE) | |||
237 | add_definitions(-DHAVE_GETPAGESIZE) | 237 | add_definitions(-DHAVE_GETPAGESIZE) |
238 | endif() | 238 | endif() |
239 | 239 | ||
240 | check_function_exists(getprogname HAVE_GETPROGNAME) | ||
241 | if(HAVE_GETPROGNAME) | ||
242 | add_definitions(-DHAVE_GETPROGNAME) | ||
243 | endif() | ||
244 | |||
245 | check_function_exists(syslog_r HAVE_SYSLOG_R) | ||
246 | if(HAVE_SYSLOG_R) | ||
247 | add_definitions(-DHAVE_SYSLOG_R) | ||
248 | endif() | ||
249 | |||
250 | check_function_exists(syslog HAVE_SYSLOG) | ||
251 | if(HAVE_SYSLOG) | ||
252 | add_definitions(-DHAVE_SYSLOG) | ||
253 | endif() | ||
254 | |||
240 | check_symbol_exists(timespecsub sys/time.h HAVE_TIMESPECSUB) | 255 | check_symbol_exists(timespecsub sys/time.h HAVE_TIMESPECSUB) |
241 | if(HAVE_TIMESPECSUB) | 256 | if(HAVE_TIMESPECSUB) |
242 | add_definitions(-DHAVE_TIMESPECSUB) | 257 | add_definitions(-DHAVE_TIMESPECSUB) |