# Build Paho MQTT on Windows ```shell= # paho.c git clone https://github.com/eclipse/paho.mqtt.c cd paho.mqtt.c && mkdir build && cd build cmake \ -DPAHO_BUILD_STATIC=TRUE \ -DPAHO_WITH_SSL=FALSE \ -DPAHO_HIGH_PERFORMANCE=ON \ -DPAHO_ENABLE_TESTING=FALSE .. cmake --build . --config Release cmake --install . --prefix ./install # paho.cc git clone https://github.com/eclipse/paho.mqtt.cc cd paho.mqtt.cc && mkdir build && cd build cmake -DPAHO_BUILD_STATIC=ON \ -DPAHO_BUILD_SHARED=FALSE \ -DPAHO_WITH_SSL=FALSE \ -DCMAKE_PREFIX_PATH=/path/of/c/installed/path .. #上面intall path要改成c install的位置 cmake --build . --config Release cmake --install . --prefix ./install ```