diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-04-12 20:19:54 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-04-12 20:19:54 -0400 |
| commit | e62f2f43e2b428a4066fc43e5d2739940f7aa5e9 (patch) | |
| tree | c653c6d525b471914c01a9d7ae543f521b6138ed /CMake/FindJsonC.cmake | |
| parent | 816bb9d54d2e9e3cbf5e14d7237dc8c8737d6b82 (diff) | |
| parent | 0cb0c52663a8e27f632988da0f91e4cfb6afddf8 (diff) | |
Merge branch 'wlroots'
Diffstat (limited to 'CMake/FindJsonC.cmake')
| -rw-r--r-- | CMake/FindJsonC.cmake | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/CMake/FindJsonC.cmake b/CMake/FindJsonC.cmake deleted file mode 100644 index bbf6930c..00000000 --- a/CMake/FindJsonC.cmake +++ /dev/null @@ -1,29 +0,0 @@ -# - Find json-c -# Find the json-c libraries -# -# This module defines the following variables: -# JSONC_FOUND - True if JSONC is found -# JSONC_LIBRARIES - JSONC libraries -# JSONC_INCLUDE_DIRS - JSONC include directories -# - -find_package(PkgConfig) - -if (JsonC_FIND_REQUIRED) - set(_pkgconfig_REQUIRED "REQUIRED") -else() - set(_pkgconfig_REQUIRED "") -endif() - -if(JsonC_FIND_VERSION) - pkg_check_modules(PC_JSONC ${_pkgconfig_REQUIRED} json-c=${JsonC_FIND_VERSION}) -else() - pkg_check_modules(PC_JSONC ${_pkgconfig_REQUIRED} json-c) -endif() - -find_path(JSONC_INCLUDE_DIRS NAMES json-c/json.h HINTS ${PC_JSONC_INCLUDE_DIRS}) -find_library(JSONC_LIBRARIES NAMES json-c HINTS ${PC_JSONC_LIBRARY_DIRS}) -include(FindPackageHandleStandardArgs) - -find_package_handle_standard_args(JSONC DEFAULT_MSG JSONC_LIBRARIES JSONC_INCLUDE_DIRS) -mark_as_advanced(JSONC_LIBRARIES JSONC_INCLUDE_DIRS) |
