Allow supplying RapidJSON from outer scope

This commit is contained in:
Martchus 2020-12-05 21:29:38 +01:00
parent 0010e32515
commit 2b6634d574
1 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,9 @@ set(CONFIGURATION_PACKAGE_SUFFIX "" CACHE STRING "sets the suffix for find_packa
find_package(c++utilities${CONFIGURATION_PACKAGE_SUFFIX} 5.0.0 REQUIRED)
# find RapidJSON
find_package(RapidJSON)
if(NOT RapidJSON_FOUND)
find_package(RapidJSON)
endif()
if(NOT RapidJSON_FOUND)
message(FATAL_ERROR "Unable to find RapidJSON. Since this is the only supported reflection application at this time, it makes no sense to continue.")
endif()