aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/mdnsresponder/CONTROL2
-rw-r--r--ports/mdnsresponder/portfile.cmake29
2 files changed, 17 insertions, 14 deletions
diff --git a/ports/mdnsresponder/CONTROL b/ports/mdnsresponder/CONTROL
index a94e7866c..66c039dbc 100644
--- a/ports/mdnsresponder/CONTROL
+++ b/ports/mdnsresponder/CONTROL
@@ -1,4 +1,4 @@
Source: mdnsresponder
-Version: 765.30.11-1
+Version: 765.30.11-2
Description: The mDNSResponder project is a component of Bonjour, Apple's ease-of-use IP networking initiative.
Homepage: https://developer.apple.com/bonjour/
diff --git a/ports/mdnsresponder/portfile.cmake b/ports/mdnsresponder/portfile.cmake
index 46ab04ddb..c37b07a20 100644
--- a/ports/mdnsresponder/portfile.cmake
+++ b/ports/mdnsresponder/portfile.cmake
@@ -21,33 +21,36 @@ ENDIF()
function(FIX_VCXPROJ VCXPROJ_PATH)
file(READ ${VCXPROJ_PATH} ORIG)
- if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
- string(REPLACE
- "<ConfigurationType>StaticLibrary</ConfigurationType>"
- "<ConfigurationType>DynamicLibrary</ConfigurationType>"
- ORIG "${ORIG}")
+ if(${VCPKG_CRT_LINKAGE} STREQUAL "dynamic")
string(REGEX REPLACE
- "<RuntimeLibrary>*</RuntimeLibrary>"
+ "<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>"
"<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>"
ORIG "${ORIG}")
string(REGEX REPLACE
- "<RuntimeLibrary>*</RuntimeLibrary>"
+ "<RuntimeLibrary>MultiThreaded</RuntimeLibrary>"
"<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>"
ORIG "${ORIG}")
else()
- string(REPLACE
- "<ConfigurationType>DynamicLibrary</ConfigurationType>"
- "<ConfigurationType>StaticLibrary</ConfigurationType>"
- ORIG "${ORIG}")
string(REGEX REPLACE
- "<RuntimeLibrary>*Debug</RuntimeLibrary>"
+ "<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>"
"<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>"
ORIG "${ORIG}")
string(REGEX REPLACE
- "<RuntimeLibrary>*</RuntimeLibrary>"
+ "<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>"
"<RuntimeLibrary>MultiThreaded</RuntimeLibrary>"
ORIG "${ORIG}")
endif()
+ if(${VCPKG_LIBRARY_LINKAGE} STREQUAL "dynamic")
+ string(REPLACE
+ "<ConfigurationType>StaticLibrary</ConfigurationType>"
+ "<ConfigurationType>DynamicLibrary</ConfigurationType>"
+ ORIG "${ORIG}")
+ else()
+ string(REPLACE
+ "<ConfigurationType>DynamicLibrary</ConfigurationType>"
+ "<ConfigurationType>StaticLibrary</ConfigurationType>"
+ ORIG "${ORIG}")
+ endif()
file(WRITE ${VCXPROJ_PATH} "${ORIG}")
endfunction()