diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 02699d0..adfb540 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -176,6 +176,11 @@ if(HAVE_ASPRINTF) | |||
176 | add_definitions(-DHAVE_ASPRINTF) | 176 | add_definitions(-DHAVE_ASPRINTF) |
177 | endif() | 177 | endif() |
178 | 178 | ||
179 | check_function_exists(getopt HAVE_GETOPT) | ||
180 | if(HAVE_GETOPT) | ||
181 | add_definitions(-DHAVE_GETOPT) | ||
182 | endif() | ||
183 | |||
179 | check_function_exists(reallocarray HAVE_REALLOCARRAY) | 184 | check_function_exists(reallocarray HAVE_REALLOCARRAY) |
180 | if(HAVE_REALLOCARRAY) | 185 | if(HAVE_REALLOCARRAY) |
181 | add_definitions(-DHAVE_REALLOCARRAY) | 186 | add_definitions(-DHAVE_REALLOCARRAY) |