mirror of
https://github.com/minetest/minetest.git
synced 2025-02-17 10:23:47 +01:00
FindJson: use PATH_SUFFIXES jsoncpp to find incdir
For example, on Fedora systems jsoncpp headers is installed in `/usr/include/jsoncpp`.
This commit is contained in:
@ -8,7 +8,7 @@ option(ENABLE_SYSTEM_JSONCPP "Enable using a system-wide JSONCPP. May cause seg
|
|||||||
|
|
||||||
if(ENABLE_SYSTEM_JSONCPP)
|
if(ENABLE_SYSTEM_JSONCPP)
|
||||||
find_library(JSON_LIBRARY NAMES jsoncpp)
|
find_library(JSON_LIBRARY NAMES jsoncpp)
|
||||||
find_path(JSON_INCLUDE_DIR json/features.h)
|
find_path(JSON_INCLUDE_DIR json/features.h PATH_SUFFIXES jsoncpp)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include(FindPackageHandleStandardArgs)
|
||||||
find_package_handle_standard_args(JSONCPP DEFAULT_MSG JSON_LIBRARY JSON_INCLUDE_DIR)
|
find_package_handle_standard_args(JSONCPP DEFAULT_MSG JSON_LIBRARY JSON_INCLUDE_DIR)
|
||||||
|
Reference in New Issue
Block a user