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(
32
32
ERROR_QUIET
33
33
)
34
34
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 )
48
36
49
37
add_library (rapidjson STATIC IMPORTED ${RAPIDJSON} )
50
38
You can’t perform that action at this time.
0 commit comments