mirror of
https://github.com/yuzu-emu/discord-rpc
synced 2024-11-26 15:07:46 +00:00
bootstrapping fix
This commit is contained in:
parent
7c07dba3f7
commit
eb2f6f8edc
1 changed files with 6 additions and 3 deletions
|
@ -32,8 +32,8 @@ execute_process(
|
||||||
ERROR_QUIET
|
ERROR_QUIET
|
||||||
)
|
)
|
||||||
|
|
||||||
find_file(RAPIDJSON NAMES rapidjson rapidjson-1.1.0 PATHS ${CMAKE_SOURCE_DIR}/thirdparty)
|
find_file(RAPIDJSONTEST NAMES rapidjson rapidjson-1.1.0 PATHS ${CMAKE_SOURCE_DIR}/thirdparty)
|
||||||
if (NOT RAPIDJSON)
|
if (NOT RAPIDJSONTEST)
|
||||||
message("no rapidjson, download")
|
message("no rapidjson, download")
|
||||||
set(RJ_TAR_FILE ${CMAKE_SOURCE_DIR}/thirdparty/v1.1.0.tar.gz)
|
set(RJ_TAR_FILE ${CMAKE_SOURCE_DIR}/thirdparty/v1.1.0.tar.gz)
|
||||||
file(DOWNLOAD https://github.com/miloyip/rapidjson/archive/v1.1.0.tar.gz ${RJ_TAR_FILE})
|
file(DOWNLOAD https://github.com/miloyip/rapidjson/archive/v1.1.0.tar.gz ${RJ_TAR_FILE})
|
||||||
|
@ -42,7 +42,10 @@ if (NOT RAPIDJSON)
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/thirdparty
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/thirdparty
|
||||||
)
|
)
|
||||||
file(REMOVE ${RJ_TAR_FILE})
|
file(REMOVE ${RJ_TAR_FILE})
|
||||||
endif(NOT RAPIDJSON)
|
endif(NOT RAPIDJSONTEST)
|
||||||
|
|
||||||
|
find_file(RAPIDJSON NAMES rapidjson rapidjson-1.1.0 PATHS ${CMAKE_SOURCE_DIR}/thirdparty)
|
||||||
|
|
||||||
add_library(rapidjson STATIC IMPORTED ${RAPIDJSON})
|
add_library(rapidjson STATIC IMPORTED ${RAPIDJSON})
|
||||||
|
|
||||||
# add subdirs
|
# add subdirs
|
||||||
|
|
Loading…
Reference in a new issue