Skip to content

Commit 7bee3dc

Browse files
committed
Update CMakeLists.txt
1 parent 4c436eb commit 7bee3dc

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

CMakeLists.txt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff 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

4937
add_library(rapidjson STATIC IMPORTED ${RAPIDJSON})
5038

0 commit comments

Comments
 (0)