diff --git a/ports/muparser/portfile.cmake b/ports/muparser/portfile.cmake index 23be2ecea43f8f..5bae8a41336b13 100644 --- a/ports/muparser/portfile.cmake +++ b/ports/muparser/portfile.cmake @@ -1,17 +1,21 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO beltoforion/muparser - REF 59e0ce1e0d35d42713af67788f19797945d81364 # v2.3.4 - SHA512 4d0261b9c155b2697ce7222d87ff19be781919e93154bf69455ce36432f66abe2a1ea80a59f7526990f7859f78259014ef56702aa5c7db2ac8c28c8e9491e1f5 + REF "v${VERSION}" + SHA512 48610dd112b5c8e1ea7615e29c9f9ca185091392b651794de039c14edfad4c62a6ae1d087393fdfd8d03a99f94a6e71275b86ddc8027234d322030bc7c25223e HEAD_REF master ) +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + openmp ENABLE_OPENMP +) + vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" - OPTIONS + OPTIONS ${FEATURE_OPTIONS} -DENABLE_SAMPLES=OFF - -DENABLE_OPENMP=OFF - -DENABLE_WIDE_CHAR=OFF + -DENABLE_WIDE_CHAR=ON ) vcpkg_cmake_install() @@ -20,9 +24,6 @@ vcpkg_copy_pdbs() vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/muparser") vcpkg_fixup_pkgconfig() -vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/muParserDef.h" "#if defined(_UNICODE)" "#if 0") -vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/muParserDLL.h" "#ifndef _UNICODE" "#if 1") - if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/muParserFixes.h" "#ifndef MUPARSER_STATIC" "#if 0") else() diff --git a/ports/muparser/vcpkg.json b/ports/muparser/vcpkg.json index 6032c402d495a6..eb7b4a3fd00ecf 100644 --- a/ports/muparser/vcpkg.json +++ b/ports/muparser/vcpkg.json @@ -1,6 +1,6 @@ { "name": "muparser", - "version": "2.3.4", + "version": "2.3.5", "description": "Fast math parser library", "homepage": "https://github.com/beltoforion/muparser", "license": "BSD-2-Clause", @@ -14,5 +14,10 @@ "name": "vcpkg-cmake-config", "host": true } - ] + ], + "features": { + "openmp": { + "description": "Enable OpenMP for multithreading" + } + } } diff --git a/versions/baseline.json b/versions/baseline.json index 5133628ab666cb..4bcc0750d812ab 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6205,7 +6205,7 @@ "port-version": 5 }, "muparser": { - "baseline": "2.3.4", + "baseline": "2.3.5", "port-version": 0 }, "murmur3": { diff --git a/versions/m-/muparser.json b/versions/m-/muparser.json index 8a36ed516eb502..b8d7cd174428d3 100644 --- a/versions/m-/muparser.json +++ b/versions/m-/muparser.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "38661715bec946285fc3f69e9b5676469ac8dc3a", + "version": "2.3.5", + "port-version": 0 + }, { "git-tree": "7a10458552dd11fbd4d72ff5e978f5f55a82e2f3", "version": "2.3.4",