summaryrefslogtreecommitdiff
path: root/cmake/FindLIBCONFIG.cmake
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-31 04:46:12 -0700
committerirungentoo <irungentoo@gmail.com>2013-07-31 04:46:12 -0700
commit7252456c8731f3dc1f26432a35f7f9586c43ab21 (patch)
tree1da99c2ebd94fd75162acb35ad4d432fce507ffd /cmake/FindLIBCONFIG.cmake
parentd28726cacb7b204c955f25849f9211f6d03dd8a2 (diff)
parent89dd7ed0111d2aebe5d362052f8582bfc17c7cbc (diff)
Merge pull request #171 from AMDmi3/freebsd-fixes
FreeBSD fixes
Diffstat (limited to 'cmake/FindLIBCONFIG.cmake')
-rw-r--r--cmake/FindLIBCONFIG.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/cmake/FindLIBCONFIG.cmake b/cmake/FindLIBCONFIG.cmake
new file mode 100644
index 00000000..d5018240
--- /dev/null
+++ b/cmake/FindLIBCONFIG.cmake
@@ -0,0 +1,15 @@
1# Find LIBCONFIG
2#
3# LIBCONFIG_INCLUDE_DIR
4# LIBCONFIG_LIBRARY
5# LIBCONFIG_FOUND
6#
7
8FIND_PATH(LIBCONFIG_INCLUDE_DIR NAMES libconfig.h)
9
10FIND_LIBRARY(LIBCONFIG_LIBRARY NAMES config)
11
12INCLUDE(FindPackageHandleStandardArgs)
13FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBCONFIG DEFAULT_MSG LIBCONFIG_LIBRARY LIBCONFIG_INCLUDE_DIR)
14
15MARK_AS_ADVANCED(LIBCONFIG_INCLUDE_DIR LIBCONFIG_LIBRARY)