Browse Source
json-rpc-cpp: Fix build by passing the toolchain file
cl-refactor
Paweł Bylica
8 years ago
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with
1 additions and
0 deletions
-
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} |
|
|
|