-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
find_package(PkgConfig) | ||
if(PKG_CONFIG_FOUND) | ||
pkg_check_modules (JSONCPP jsoncpp) | ||
pkg_check_modules(PC_JSONCPP jsoncpp) | ||
endif() | ||
|
||
if(NOT JSONCPP_FOUND) | ||
find_path(JSONCPP_INCLUDE_DIRS json/json.h | ||
PATH_SUFFIXES jsoncpp) | ||
find_library(JSONCPP_LIBRARIES jsoncpp) | ||
endif() | ||
find_path(JSONCPP_INCLUDE_DIRS json/json.h | ||
PATHS ${PC_JSONCPP_INCLUDEDIR} | ||
PATH_SUFFIXES jsoncpp) | ||
find_library(JSONCPP_LIBRARIES jsoncpp | ||
PATHS ${PC_JSONCPP_LIBDIR}) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(JsonCpp DEFAULT_MSG JSONCPP_LIBRARIES JSONCPP_INCLUDE_DIRS) | ||
find_package_handle_standard_args(JsonCpp REQUIRED_VARS JSONCPP_LIBRARIES JSONCPP_INCLUDE_DIRS) | ||
|
||
mark_as_advanced(JSONCPP_INCLUDE_DIRS JSONCPP_LIBRARIES) |