mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 13:08:00 +08:00
[muparser] Fix usage (#22975)
* [muparser] Fix usage * version * Delete new feature * version * Remove FEATURE_OPTIONS * version
This commit is contained in:
parent
439bf40945
commit
e2c7976c10
@ -7,18 +7,28 @@ vcpkg_from_github(
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DENABLE_SAMPLES=OFF
|
||||
-DENABLE_OPENMP=OFF
|
||||
-DENABLE_WIDE_CHAR=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/muparser")
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
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()
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/muParserFixes.h" "#ifndef MUPARSER_STATIC" "#if 1")
|
||||
endif()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "muparser",
|
||||
"version": "2.3.3",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "Fast math parser library",
|
||||
"homepage": "https://github.com/beltoforion/muparser",
|
||||
"license": "BSD-2-Clause",
|
||||
|
@ -4630,7 +4630,7 @@
|
||||
},
|
||||
"muparser": {
|
||||
"baseline": "2.3.3",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"murmurhash": {
|
||||
"baseline": "2016-01-09",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "6987fcdb2ed52f7891489a2c97bdc92b64c46a6f",
|
||||
"version": "2.3.3",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "6b93a7e6250aaa93e20c752426eb4fb1bcb08411",
|
||||
"version": "2.3.3",
|
||||
|
Loading…
x
Reference in New Issue
Block a user