diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-31 04:46:12 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-31 04:46:12 -0700 |
commit | 7252456c8731f3dc1f26432a35f7f9586c43ab21 (patch) | |
tree | 1da99c2ebd94fd75162acb35ad4d432fce507ffd /cmake/FindLIBCONFIG.cmake | |
parent | d28726cacb7b204c955f25849f9211f6d03dd8a2 (diff) | |
parent | 89dd7ed0111d2aebe5d362052f8582bfc17c7cbc (diff) |
Merge pull request #171 from AMDmi3/freebsd-fixes
FreeBSD fixes
Diffstat (limited to 'cmake/FindLIBCONFIG.cmake')
-rw-r--r-- | cmake/FindLIBCONFIG.cmake | 15 |
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 | |||
8 | FIND_PATH(LIBCONFIG_INCLUDE_DIR NAMES libconfig.h) | ||
9 | |||
10 | FIND_LIBRARY(LIBCONFIG_LIBRARY NAMES config) | ||
11 | |||
12 | INCLUDE(FindPackageHandleStandardArgs) | ||
13 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBCONFIG DEFAULT_MSG LIBCONFIG_LIBRARY LIBCONFIG_INCLUDE_DIR) | ||
14 | |||
15 | MARK_AS_ADVANCED(LIBCONFIG_INCLUDE_DIR LIBCONFIG_LIBRARY) | ||