aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRechi <Rechi@users.noreply.github.com>2017-03-24 17:55:33 +0100
committerGitHub <noreply@github.com>2017-03-24 17:55:33 +0100
commit414c05919f8068c9d90abeb25a6427afb45842d6 (patch)
tree0249fbf13aafb4a519093cfd90d2dd3f6c682138
parentb877760d33fdf96ef641f4803a252c449f03e6bd (diff)
parent5dbc04a3c25df0646344a2a4f482c4c5e9f2a725 (diff)
Merge pull request #11896 from Rechi/fixFindRapidJSON
[cmake] change RapidJSON_INCLUDE_DIRS to capital letters to get added to SYSTEM_INCLUDES
-rw-r--r--cmake/modules/FindRapidJSON.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/modules/FindRapidJSON.cmake b/cmake/modules/FindRapidJSON.cmake
index 991cd071e8..ddd5448603 100644
--- a/cmake/modules/FindRapidJSON.cmake
+++ b/cmake/modules/FindRapidJSON.cmake
@@ -19,12 +19,12 @@ find_path(RapidJSON_INCLUDE_DIR NAMES rapidjson/rapidjson.h
set(RapidJSON_VERSION ${PC_RapidJSON_VERSION})
include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(RapidJSON
+find_package_handle_standard_args(RAPIDJSON
REQUIRED_VARS RapidJSON_INCLUDE_DIR
VERSION_VAR RapidJSON_VERSION)
-if(RapidJSON_FOUND)
- set(RapidJSON_INCLUDE_DIRS ${RapidJSON_INCLUDE_DIR})
+if(RAPIDJSON_FOUND)
+ set(RAPIDJSON_INCLUDE_DIRS ${RapidJSON_INCLUDE_DIR})
endif()
mark_as_advanced(RapidJSON_INCLUDE_DIR)