forked from Tencent/rapidjson
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to create config file which is independent from actual install…
… location
- Loading branch information
Clemens Arth
committed
Mar 14, 2017
1 parent
266870d
commit b91c515
Showing
2 changed files
with
44 additions
and
12 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
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,3 +1,15 @@ | ||
get_filename_component(RAPIDJSON_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) | ||
set(RAPIDJSON_INCLUDE_DIRS "@INCLUDE_INSTALL_DIR@") | ||
message(STATUS "RapidJSON found. Headers: ${RAPIDJSON_INCLUDE_DIRS}") | ||
################################################################################ | ||
# RapidJSON source dir | ||
set( RapidJSON_SOURCE_DIR "@CONFIG_SOURCE_DIR@") | ||
|
||
################################################################################ | ||
# RapidJSON build dir | ||
set( RapidJSON_DIR "@CONFIG_DIR@") | ||
|
||
################################################################################ | ||
# Compute paths | ||
get_filename_component(RapidJSON_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) | ||
|
||
set( RapidJSON_INCLUDE_DIR "@RapidJSON_INCLUDE_DIR@" ) | ||
set( RapidJSON_INCLUDE_DIRS "@RapidJSON_INCLUDE_DIR@" ) | ||
message(STATUS "RapidJSON found. Headers: ${RapidJSON_INCLUDE_DIRS}") |