From d674846fdc13846f81d7688248f7b43d51863fa1 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Thu, 9 Mar 2006 22:35:02 +0000 Subject: Detect and enable the ACL support. svn path=/trunk/KDE/kdelibs/; revision=517103 --- modules/FindACL.cmake | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 modules/FindACL.cmake (limited to 'modules/FindACL.cmake') diff --git a/modules/FindACL.cmake b/modules/FindACL.cmake new file mode 100644 index 00000000..cb606495 --- /dev/null +++ b/modules/FindACL.cmake @@ -0,0 +1,37 @@ +# - Try to find the ACL library +# Once done this will define +# +# ACL_FOUND - system has the ACL library +# ACL_LIBS - The libraries needed to use ACL + +check_include_files(attr/libattr.h HAVE_ATTR_LIBATTR_H) +check_include_files(sys/xattr.h HAVE_SYS_XATTR_H) +check_include_files(sys/acl.h HAVE_SYS_ACL_H) +check_include_files(acl/libacl.h HAVE_ACL_LIBACL_H) + +if(HAVE_ATTR_LIBATTR_H AND HAVE_SYS_XATTR_H AND HAVE_SYS_ACL_H AND HAVE_ACL_LIBACL_H) + set(ACL_HEADERS_FOUND TRUE) +endif(HAVE_ATTR_LIBATTR_H AND HAVE_SYS_XATTR_H AND HAVE_SYS_ACL_H AND HAVE_ACL_LIBACL_H) + +if(ACL_HEADERS_FOUND) + FIND_LIBRARY(ACL_LIBS NAMES acl + PATHS + /usr/lib + /usr/local/lib + ) + + FIND_LIBRARY(ATTR_LIBS NAMES attr + PATHS + /usr/lib + /usr/local/lib + ) +endif(ACL_HEADERS_FOUND) + +if(ACL_HEADERS_FOUND AND ACL_LIBS AND ATTR_LIBS) + set(ACL_FOUND TRUE) + set(ACL_LIBS ${ACL_LIBS} ${ATTR_LIBS}) + message(STATUS "Found ACL support: ${ACL_LIBS}") +endif(ACL_HEADERS_FOUND AND ACL_LIBS AND ATTR_LIBS) + +MARK_AS_ADVANCED(ACL_LIBS) + -- cgit v1.2.1 From 9dc075ccb23652fe7e40d293122bd518245f7dd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20K=C3=BCmmel?= Date: Sat, 11 Mar 2006 11:32:54 +0000 Subject: include used check_include_files macro svn path=/trunk/KDE/kdelibs/; revision=517536 --- modules/FindACL.cmake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/FindACL.cmake') diff --git a/modules/FindACL.cmake b/modules/FindACL.cmake index cb606495..d8d83e53 100644 --- a/modules/FindACL.cmake +++ b/modules/FindACL.cmake @@ -4,6 +4,8 @@ # ACL_FOUND - system has the ACL library # ACL_LIBS - The libraries needed to use ACL +INCLUDE(CheckIncludeFiles) + check_include_files(attr/libattr.h HAVE_ATTR_LIBATTR_H) check_include_files(sys/xattr.h HAVE_SYS_XATTR_H) check_include_files(sys/acl.h HAVE_SYS_ACL_H) -- cgit v1.2.1 From 191846e3e21c697c28bd5c8a166edeb4072161e3 Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Mon, 20 Mar 2006 21:05:37 +0000 Subject: minor cleanups: indenting, adding newline to end of file, etc. svn path=/trunk/KDE/kdelibs/; revision=520790 --- modules/FindACL.cmake | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/FindACL.cmake') diff --git a/modules/FindACL.cmake b/modules/FindACL.cmake index d8d83e53..ada94c32 100644 --- a/modules/FindACL.cmake +++ b/modules/FindACL.cmake @@ -11,11 +11,11 @@ check_include_files(sys/xattr.h HAVE_SYS_XATTR_H) check_include_files(sys/acl.h HAVE_SYS_ACL_H) check_include_files(acl/libacl.h HAVE_ACL_LIBACL_H) -if(HAVE_ATTR_LIBATTR_H AND HAVE_SYS_XATTR_H AND HAVE_SYS_ACL_H AND HAVE_ACL_LIBACL_H) +if (HAVE_ATTR_LIBATTR_H AND HAVE_SYS_XATTR_H AND HAVE_SYS_ACL_H AND HAVE_ACL_LIBACL_H) set(ACL_HEADERS_FOUND TRUE) -endif(HAVE_ATTR_LIBATTR_H AND HAVE_SYS_XATTR_H AND HAVE_SYS_ACL_H AND HAVE_ACL_LIBACL_H) +endif (HAVE_ATTR_LIBATTR_H AND HAVE_SYS_XATTR_H AND HAVE_SYS_ACL_H AND HAVE_ACL_LIBACL_H) -if(ACL_HEADERS_FOUND) +if (ACL_HEADERS_FOUND) FIND_LIBRARY(ACL_LIBS NAMES acl PATHS /usr/lib @@ -27,13 +27,13 @@ if(ACL_HEADERS_FOUND) /usr/lib /usr/local/lib ) -endif(ACL_HEADERS_FOUND) +endif (ACL_HEADERS_FOUND) -if(ACL_HEADERS_FOUND AND ACL_LIBS AND ATTR_LIBS) +if (ACL_HEADERS_FOUND AND ACL_LIBS AND ATTR_LIBS) set(ACL_FOUND TRUE) set(ACL_LIBS ${ACL_LIBS} ${ATTR_LIBS}) message(STATUS "Found ACL support: ${ACL_LIBS}") -endif(ACL_HEADERS_FOUND AND ACL_LIBS AND ATTR_LIBS) +endif (ACL_HEADERS_FOUND AND ACL_LIBS AND ATTR_LIBS) MARK_AS_ADVANCED(ACL_LIBS) -- cgit v1.2.1 From c778596920e0d5357f216c885e35b4f97d371a23 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sat, 9 Sep 2006 10:18:35 +0000 Subject: added copyright notice everywhere. Now they all are BSD-licensed, as copyright holder I inserted everywhere the one who added it to svn (or Kitware if it is an enhanced copy from taken cmake) Some developers committed quite often but were not the ones who added the file, if you feel you have also copyright on the file add your name in the specific file. Copyright holders: CCMAIL: montel@kde.org CCMAIL: toscano.pino@tiscali.it CCMAIL: adymo@kdevelop.org CCMAIL: ranger@befunk.com CCMAIL: zack@kde.org CCMAIL: caslav.ilic@gmx.net CCMAIL: syntheticpp@yahoo.com CCMAIL: js@iidea.pl CCMAIL: michael.larouche@kdemail.net CCMAIL: ossi@kde.org CCMAIL: faure@kde.org Committers, but no files added so that they are not listed as copyright holders: CCMAIL: ch.ehrlicher@gmx.de CCMAIL: winter@kde.org CCMAIL: ralf.habacker@freenet.de CCMAIL: moura@kdewebdev.org CCMAIL: kde-buildsystem@kde.org Alex svn path=/trunk/KDE/kdelibs/; revision=582410 --- modules/FindACL.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/FindACL.cmake') diff --git a/modules/FindACL.cmake b/modules/FindACL.cmake index ada94c32..9fb06782 100644 --- a/modules/FindACL.cmake +++ b/modules/FindACL.cmake @@ -3,6 +3,11 @@ # # ACL_FOUND - system has the ACL library # ACL_LIBS - The libraries needed to use ACL +# +# Copyright (c) 2006, Pino Toscano, +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. INCLUDE(CheckIncludeFiles) -- cgit v1.2.1 From b934aae5f61f38183cd62a459c61b2625e71b52c Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Fri, 3 Aug 2007 01:13:21 +0000 Subject: remove unnecessary default search paths Alex svn path=/trunk/KDE/kdelibs/; revision=695813 --- modules/FindACL.cmake | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'modules/FindACL.cmake') diff --git a/modules/FindACL.cmake b/modules/FindACL.cmake index 9fb06782..e21e25fa 100644 --- a/modules/FindACL.cmake +++ b/modules/FindACL.cmake @@ -21,17 +21,9 @@ if (HAVE_ATTR_LIBATTR_H AND HAVE_SYS_XATTR_H AND HAVE_SYS_ACL_H AND HAVE_ACL_LIB endif (HAVE_ATTR_LIBATTR_H AND HAVE_SYS_XATTR_H AND HAVE_SYS_ACL_H AND HAVE_ACL_LIBACL_H) if (ACL_HEADERS_FOUND) - FIND_LIBRARY(ACL_LIBS NAMES acl - PATHS - /usr/lib - /usr/local/lib - ) - - FIND_LIBRARY(ATTR_LIBS NAMES attr - PATHS - /usr/lib - /usr/local/lib - ) + FIND_LIBRARY(ACL_LIBS NAMES acl ) + + FIND_LIBRARY(ATTR_LIBS NAMES attr ) endif (ACL_HEADERS_FOUND) if (ACL_HEADERS_FOUND AND ACL_LIBS AND ATTR_LIBS) -- cgit v1.2.1 From 814455b7ad321c88e730662fda58261087b72e72 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Mon, 18 Feb 2008 19:06:32 +0000 Subject: some improvements to the docs: -some modules were not at all documented, only few are left now -the copyright message doesn't have to be printed for every module in the docs -fix FindKorundom.cmake, it didn't follow the style guide and had typos (e.g. Korumdum_FOUND instead of KORUNDUM_FOUND) Alex (will commit modified FindKDE4Internal.cmake after Christians commit) svn path=/trunk/KDE/kdelibs/; revision=776742 --- modules/FindACL.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/FindACL.cmake') diff --git a/modules/FindACL.cmake b/modules/FindACL.cmake index e21e25fa..2c515fdf 100644 --- a/modules/FindACL.cmake +++ b/modules/FindACL.cmake @@ -3,7 +3,7 @@ # # ACL_FOUND - system has the ACL library # ACL_LIBS - The libraries needed to use ACL -# + # Copyright (c) 2006, Pino Toscano, # # Redistribution and use is allowed according to the terms of the BSD license. -- cgit v1.2.1 From 9197e55392ed66b784cb719e202a24f78cd03c58 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Thu, 3 Apr 2008 22:12:21 +0000 Subject: -mark some variables as advanced, so they don't appear in the not-advanced view of cmake-gui and ccmake -some minor cosmetics (casing and spaces vs. tabs) Alex svn path=/trunk/KDE/kdelibs/; revision=793410 --- modules/FindACL.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/FindACL.cmake') diff --git a/modules/FindACL.cmake b/modules/FindACL.cmake index 2c515fdf..7d3fa14f 100644 --- a/modules/FindACL.cmake +++ b/modules/FindACL.cmake @@ -9,7 +9,7 @@ # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. -INCLUDE(CheckIncludeFiles) +include(CheckIncludeFiles) check_include_files(attr/libattr.h HAVE_ATTR_LIBATTR_H) check_include_files(sys/xattr.h HAVE_SYS_XATTR_H) @@ -21,9 +21,9 @@ if (HAVE_ATTR_LIBATTR_H AND HAVE_SYS_XATTR_H AND HAVE_SYS_ACL_H AND HAVE_ACL_LIB endif (HAVE_ATTR_LIBATTR_H AND HAVE_SYS_XATTR_H AND HAVE_SYS_ACL_H AND HAVE_ACL_LIBACL_H) if (ACL_HEADERS_FOUND) - FIND_LIBRARY(ACL_LIBS NAMES acl ) + find_library(ACL_LIBS NAMES acl ) - FIND_LIBRARY(ATTR_LIBS NAMES attr ) + find_library(ATTR_LIBS NAMES attr ) endif (ACL_HEADERS_FOUND) if (ACL_HEADERS_FOUND AND ACL_LIBS AND ATTR_LIBS) @@ -32,5 +32,5 @@ if (ACL_HEADERS_FOUND AND ACL_LIBS AND ATTR_LIBS) message(STATUS "Found ACL support: ${ACL_LIBS}") endif (ACL_HEADERS_FOUND AND ACL_LIBS AND ATTR_LIBS) -MARK_AS_ADVANCED(ACL_LIBS) +mark_as_advanced(ACL_LIBS ATTR_LIBS) -- cgit v1.2.1