diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-02-17 19:40:16 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-02-17 19:40:16 +0100 |
commit | 0542509fc175c7b5a76cd31901834a2530ae4718 (patch) | |
tree | b6ebe0c04e1c3a847d4aa0ccceaefe1fd08f6185 /ConfigureChecks.cmake | |
parent | bd87db0c6ddffd437ba39acbcc9aa92db5c906c0 (diff) | |
download | tdevelop-0542509fc175c7b5a76cd31901834a2530ae4718.tar.gz tdevelop-0542509fc175c7b5a76cd31901834a2530ae4718.zip |
Add CMake check if the getline function is defined
instead of listing the systems and versions that need to be defined.
This resolves FTBFS on FreeBSD 12.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index d46b7e33..83bcbfc6 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -31,6 +31,7 @@ endif( ) check_include_file( "sys/stropts.h" HAVE_SYS_STROPTS_H ) check_function_exists( "mkfifo" HAVE_MKFIFO ) +check_symbol_exists( "getline" "stdio.h" HAVE_GETLINE ) ##### check for berkeley db #################### |