aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpast-due <30942300+past-due@users.noreply.github.com>2018-03-19 16:26:36 -0400
committerpast-due <30942300+past-due@users.noreply.github.com>2018-03-19 17:55:29 -0400
commitcbf6adc9d3224d8f7455f40568dd49c7586d1454 (patch)
tree8aac2d88e6930cfbf06ca8dbdffe825c0d0f463c
parent5968ebf9f4beae3a0662dfc6ba343b0be07a1241 (diff)
downloadvcpkg-cbf6adc9d3224d8f7455f40568dd49c7586d1454.tar.gz
vcpkg-cbf6adc9d3224d8f7455f40568dd49c7586d1454.zip
[paho-mqtt] Fix post-build validation failure when VCPKG_BUILD_TYPE is set
The portfile was creating empty directories (for the "other" build type) if `VCPKG_BUILD_TYPE` was specified.
-rw-r--r--ports/paho-mqtt/portfile.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/ports/paho-mqtt/portfile.cmake b/ports/paho-mqtt/portfile.cmake
index 27f9c8243..3d0fc12e9 100644
--- a/ports/paho-mqtt/portfile.cmake
+++ b/ports/paho-mqtt/portfile.cmake
@@ -52,11 +52,15 @@ file(GLOB HEADERS "${SOURCE_PATH}/*/*.h")
if(DLLS)
file(INSTALL ${DLLS} DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
endif()
-file(INSTALL ${LIBS} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
+if(LIBS)
+ file(INSTALL ${LIBS} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
+endif()
if(DEBUG_DLLS)
file(INSTALL ${DEBUG_DLLS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()
-file(INSTALL ${DEBUG_LIBS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
+if(DEBUG_LIBS)
+ file(INSTALL ${DEBUG_LIBS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
+endif()
file(INSTALL ${HEADERS} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)