File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ others/S2OPC
19
19
others /check-0.15.2.tar.gz
20
20
others /check-0.15.2
21
21
others /libexpat
22
+ others /scripts /mqtt /paho.mqtt.c *
22
23
23
24
# Archived packages
24
25
plugins /archive
Original file line number Diff line number Diff line change
1
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2
+ index e2b934a..9d5e9a0 100644
3
+ --- a/src/CMakeLists.txt
4
+ +++ b/src/CMakeLists.txt
5
+ @@ -94,7 +94,7 @@ target_compile_definitions(paho-cpp-objs PRIVATE PAHO_MQTTPP_EXPORTS)
6
+ target_compile_options(paho-cpp-objs PRIVATE
7
+ $<$<CXX_COMPILER_ID:MSVC>:/W3>
8
+ $<$<CXX_COMPILER_ID:Clang>:-Wall -Wextra -Wdocumentation>
9
+ - $<$<NOT:$<CXX_COMPILER_ID:MSVC,Clang>>:-Wall -Wextra>
10
+ + $<$<NOT:$<OR:$<CXX_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:Clang>>>:-Wall -Wextra>
11
+ )
12
+
13
+ ## --- Build the shared library, if requested ---
Original file line number Diff line number Diff line change 49
49
echo " Requirements are not supported for platform: ${os_name} and having version: ${os_version} "
50
50
fi
51
51
rm -rf paho.mqtt.c
52
- git clone https://github.com/eclipse/paho.mqtt.c.git
52
+ git clone --depth 1 --branch v1.3.13 https://github.com/eclipse/paho.mqtt.c.git
53
53
cd paho.mqtt.c
54
54
mkdir build
55
55
cd build
61
61
cd ..
62
62
63
63
rm -rf paho.mqtt.cpp
64
- git clone https://github.com/eclipse/paho.mqtt.cpp
64
+ git clone --depth 1 --branch v1.3.1 https://github.com/eclipse/paho.mqtt.cpp
65
65
cd paho.mqtt.cpp
66
- cmake -Bbuild -H. -DPAHO_BUILD_STATIC=ON -DPAHO_WITH_SSL=ON -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=FALSE
66
+ cp ../scripts/mqtt/paho-mqtt-cpp.patch .
67
+ git apply paho-mqtt-cpp.patch
68
+ cmake -Bbuild -H. -DPAHO_WITH_SSL=ON -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=FALSE
67
69
sudo cmake --build build/ --target install
68
70
sudo ldconfig
69
71
cd ..
You can’t perform that action at this time.
0 commit comments