matrixion/deps/cmake/Json.cmake

20 lines
498 B
CMake
Raw Normal View History

2019-02-24 22:50:31 +03:00
ExternalProject_Add(
Json
2019-02-24 22:50:31 +03:00
GIT_REPOSITORY ${JSON_URL}
GIT_TAG ${JSON_TAG}
BUILD_IN_SOURCE 1
SOURCE_DIR ${DEPS_BUILD_DIR}/json
CONFIGURE_COMMAND ${CMAKE_COMMAND}
-DJSON_BuildTests=OFF
-DCMAKE_INSTALL_PREFIX=${DEPS_INSTALL_DIR}
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
BUILD_COMMAND ${CMAKE_COMMAND} --build ${DEPS_BUILD_DIR}/json
2019-12-14 19:08:36 +03:00
INSTALL_COMMAND ${CMAKE_COMMAND} --build ${DEPS_BUILD_DIR}/json --target install
)
2019-02-24 22:50:31 +03:00
list(APPEND THIRD_PARTY_DEPS Json)