Browse Source

Fix find_path for newer jsoncpp installations

Port of Old MT commit 706b6aad06
From: William Breathitt Gray <vilhelm.gray@gmail.com>
Date: Sat, 16 Nov 2019 13:14:24 -0500
master
OldCoder 8 months ago
parent
commit
c17bbf03db
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      cmake/Modules/FindJson.cmake

+ 1
- 1
cmake/Modules/FindJson.cmake View File

@@ -8,7 +8,7 @@ option(ENABLE_SYSTEM_JSONCPP "Enable using a system-wide JSONCPP. May cause seg

if(ENABLE_SYSTEM_JSONCPP)
find_library(JSON_LIBRARY NAMES jsoncpp)
find_path(JSON_INCLUDE_DIR json/features.h PATH_SUFFIXES jsoncpp)
find_path(JSON_INCLUDE_DIR json/allocator.h PATH_SUFFIXES jsoncpp)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(JSONCPP DEFAULT_MSG JSON_LIBRARY JSON_INCLUDE_DIR)


Loading…
Cancel
Save