vcpkg/ports/mosquitto/cmake.patch
Youngho Kim a8ae8773c5 add Mosquitto library for IoT (#3127)
* initial commit of 1.4.15 for mosquitto lib.

initial commit of 1.4.15 for mosquitto lib.

* bug fixed for win64 on mosquitto and install error

bug fixed for win64 on mosquitto and install error

* [mosquitto] Use patches to simplify portfile.
2018-03-30 16:34:51 -07:00

14 lines
651 B
Diff

--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -4,8 +4,8 @@
if (${WITH_THREADING} STREQUAL ON)
add_definitions("-DWITH_THREADING")
if (WIN32)
- set (PTHREAD_LIBRARIES C:\\pthreads\\Pre-built.2\\lib\\x86\\pthreadVC2.lib)
- set (PTHREAD_INCLUDE_DIR C:\\pthreads\\Pre-built.2\\include)
+ set (PTHREAD_LIBRARIES ${VCPKG_ROOT_DIR}/installed/${TARGET_TRIPLET}/lib/pthreadsVC2.lib)
+ set (PTHREAD_INCLUDE_DIR ${VCPKG_ROOT_DIR}/installed/${TARGET_TRIPLET}/include)
else (WIN32)
find_library(LIBPTHREAD pthread)
if (LIBPTHREAD)