summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-02-17 19:40:16 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-02-17 19:40:16 +0100
commit0542509fc175c7b5a76cd31901834a2530ae4718 (patch)
treeb6ebe0c04e1c3a847d4aa0ccceaefe1fd08f6185 /ConfigureChecks.cmake
parentbd87db0c6ddffd437ba39acbcc9aa92db5c906c0 (diff)
downloadtdevelop-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.cmake1
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 ####################