diff options
author | Brent Cook <busterb@gmail.com> | 2023-07-07 04:32:20 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2023-07-07 04:32:20 -0500 |
commit | 51368394eb92381952051795a2cc226eba4daa52 (patch) | |
tree | b97c1a95acd36ce6f0f222e3d3415471e725b99b /CMakeLists.txt | |
parent | 2354879274cdc24862bcf585815bc76718eb8400 (diff) | |
parent | 7463f87cf1c3b8494a604976a8f818b07747b55e (diff) | |
download | portable-51368394eb92381952051795a2cc226eba4daa52.tar.gz portable-51368394eb92381952051795a2cc226eba4daa52.tar.bz2 portable-51368394eb92381952051795a2cc226eba4daa52.zip |
Land #886, add compat getopt implementation
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) |