diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-01 05:21:03 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-01 05:21:03 -0500 |
commit | d071ff08aeae2bbea4ac4a8e56c7a146c13d0869 (patch) | |
tree | b1780435422ac6d778fd4b9c0a4746306dee59fe /CMake/FindJsonC.cmake | |
parent | remove relevant CMakeLists.txt (diff) | |
download | sway-d071ff08aeae2bbea4ac4a8e56c7a146c13d0869.tar.gz sway-d071ff08aeae2bbea4ac4a8e56c7a146c13d0869.tar.zst sway-d071ff08aeae2bbea4ac4a8e56c7a146c13d0869.zip |
remove the rest of cmake
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 @@ | |||
1 | # - Find json-c | ||
2 | # Find the json-c libraries | ||
3 | # | ||
4 | # This module defines the following variables: | ||
5 | # JSONC_FOUND - True if JSONC is found | ||
6 | # JSONC_LIBRARIES - JSONC libraries | ||
7 | # JSONC_INCLUDE_DIRS - JSONC include directories | ||
8 | # | ||
9 | |||
10 | find_package(PkgConfig) | ||
11 | |||
12 | if (JsonC_FIND_REQUIRED) | ||
13 | set(_pkgconfig_REQUIRED "REQUIRED") | ||
14 | else() | ||
15 | set(_pkgconfig_REQUIRED "") | ||
16 | endif() | ||
17 | |||
18 | if(JsonC_FIND_VERSION) | ||
19 | pkg_check_modules(PC_JSONC ${_pkgconfig_REQUIRED} json-c=${JsonC_FIND_VERSION}) | ||
20 | else() | ||
21 | pkg_check_modules(PC_JSONC ${_pkgconfig_REQUIRED} json-c) | ||
22 | endif() | ||
23 | |||
24 | find_path(JSONC_INCLUDE_DIRS NAMES json-c/json.h HINTS ${PC_JSONC_INCLUDE_DIRS}) | ||
25 | find_library(JSONC_LIBRARIES NAMES json-c HINTS ${PC_JSONC_LIBRARY_DIRS}) | ||
26 | include(FindPackageHandleStandardArgs) | ||
27 | |||
28 | find_package_handle_standard_args(JSONC DEFAULT_MSG JSONC_LIBRARIES JSONC_INCLUDE_DIRS) | ||
29 | mark_as_advanced(JSONC_LIBRARIES JSONC_INCLUDE_DIRS) | ||