diff options
author | Alex Kent Hajnal <software@alephnull.net> | 2024-05-15 18:43:42 -0400 |
---|---|---|
committer | Alex Kent Hajnal <software@alephnull.net> | 2024-05-15 18:43:42 -0400 |
commit | 000075c0719883663f3250cbd74685847ace7ae4 (patch) | |
tree | c221af1cb683aba0a58a3b3a6f8ef01c78c584c5 /CMakeLists.txt | |
parent | c1755d520059275c076b0c6695dcccf0c23b1003 (diff) | |
download | tdelibs-000075c0719883663f3250cbd74685847ace7ae4.tar.gz tdelibs-000075c0719883663f3250cbd74685847ace7ae4.zip |
Code clean-up, proper CMake integration
Signed-off-by: Alex Kent Hajnal <software@alephnull.net>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 84158ef6d..3618f20b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -284,13 +284,17 @@ if( NOT HAVE_SYS_UCRED_H ) endif( ) endif( ) check_include_file( "sys/xattr.h" HAVE_SYS_XATTR_H ) + check_include_file( "attr/libattr.h" HAVE_ATTR_LIBATTR_H) if ( HAVE_ATTR_LIBATTR_H ) - check_library_exists( attr attr_copy_file "" HAVE_ATTR__ATTR_COPY_FILE ) -endif( ) -if( HAVE_ATTR__ATTR_COPY_FILE ) - set( DO_USER_XATTR_COPYING "1" ) + message( STATUS "Have attr/libattr.h" ) + check_library_exists( attr attr_copy_file "" HAVE_ATTR__ATTR_COPY_FILE ) + if( HAVE_ATTR__ATTR_COPY_FILE ) + message( STATUS "Have attr_copy_file in libattr" ) + set( USER_XATTR_LIBRARIES attr ) + set( DO_USER_XATTR_COPYING 1 ) message( STATUS "User extended attribute copy support enabled" ) + endif( ) endif( ) check_include_file( "termios.h" HAVE_TERMIOS_H ) |