зеркало из https://github.com/Azure/azure-umqtt-c.git
enable osx for umqtt
This commit is contained in:
Родитель
337eb7b0d3
Коммит
a5a396f13e
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
script_dir=$(cd "$(dirname "$0")" && pwd)
|
||||
build_root=$(cd "${script_dir}/.." && pwd)
|
||||
build_folder=$build_root"/cmake"
|
||||
|
||||
CORES=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu)
|
||||
|
||||
rm -r -f $build_folder
|
||||
mkdir -p $build_folder
|
||||
pushd $build_folder
|
||||
cmake .. -DOPENSSL_ROOT_DIR:PATH=/usr/local/opt/openssl -Drun_unittests:bool=ON
|
||||
cmake --build . -- --jobs=$CORES
|
||||
ctest -C "debug" -V
|
||||
popd
|
|
@ -47,7 +47,7 @@ else()
|
|||
pthread
|
||||
umqtt)
|
||||
#if(${use_openssl})
|
||||
target_link_libraries(mqtt_client_sample ssl crypto)
|
||||
target_link_libraries(mqtt_client_sample ${OPENSSL_LIBRARIES})
|
||||
#endif()
|
||||
endif()
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче