Browse Source

json-rpc-cpp: Fix build by passing the toolchain file

cl-refactor
Paweł Bylica 8 years ago
parent
commit
92670a42be
No known key found for this signature in database GPG Key ID: 7A0C037434FE77EF
  1. 1
      cmake/ProjectJsonRpcCpp.cmake

1
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=<INSTALL_DIR>
-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}

Loading…
Cancel
Save