From 92670a42be6c75167f7c7295c2088c8e38d0ef72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Tue, 25 Apr 2017 10:35:45 +0200 Subject: [PATCH] json-rpc-cpp: Fix build by passing the toolchain file --- cmake/ProjectJsonRpcCpp.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/ProjectJsonRpcCpp.cmake b/cmake/ProjectJsonRpcCpp.cmake index 2821e9ba6..28c5e5b0d 100644 --- a/cmake/ProjectJsonRpcCpp.cmake +++ b/cmake/ProjectJsonRpcCpp.cmake @@ -8,6 +8,7 @@ get_target_property(CURL_INCLUDE_DIR CURL::libcurl INTERFACE_INCLUDE_DIRECTORIES get_target_property(CURL_LIBRARY CURL::libcurl IMPORTED_LOCATION_RELEASE) set(CMAKE_ARGS -DCMAKE_INSTALL_PREFIX= + -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DCMAKE_BUILD_TYPE=Release # Build static lib but suitable to be included in a shared lib. -DCMAKE_POSITION_INDEPENDENT_CODE=${BUILD_SHARED_LIBS}