File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -32,19 +32,7 @@ execute_process(
3232 ERROR_QUIET
3333)
3434
35- find_file (RAPIDJSONTEST NAMES rapidjson rapidjson-1.1.0 PATHS ${CMAKE_CURRENT_SOURCE_DIR} /thirdparty CMAKE_FIND_ROOT_PATH_BOTH )
36- if (NOT RAPIDJSONTEST)
37- message ("no rapidjson, download" )
38- set (RJ_TAR_FILE ${CMAKE_CURRENT_SOURCE_DIR} /thirdparty/v1.1.0.tar.gz)
39- file (DOWNLOAD https://github.com/miloyip/rapidjson/archive/v1.1.0.tar.gz ${RJ_TAR_FILE} )
40- execute_process (
41- COMMAND ${CMAKE_COMMAND} -E tar xzf ${RJ_TAR_FILE}
42- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /thirdparty
43- )
44- file (REMOVE ${RJ_TAR_FILE} )
45- endif (NOT RAPIDJSONTEST)
46-
47- find_file (RAPIDJSON NAMES rapidjson rapidjson-1.1.0 PATHS ${CMAKE_CURRENT_SOURCE_DIR} /thirdparty CMAKE_FIND_ROOT_PATH_BOTH )
35+ find_file (RAPIDJSON NAMES rapidjson rapidjson PATHS ${CMAKE_CURRENT_SOURCE_DIR} /thirdparty CMAKE_FIND_ROOT_PATH_BOTH )
4836
4937add_library (rapidjson STATIC IMPORTED ${RAPIDJSON} )
5038
You can’t perform that action at this time.
0 commit comments