diff options
Diffstat (limited to 'ports/simdjson')
| -rw-r--r-- | ports/simdjson/portfile.cmake | 9 | ||||
| -rw-r--r-- | ports/simdjson/vcpkg.json | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ports/simdjson/portfile.cmake b/ports/simdjson/portfile.cmake index 7c8677759..e3e701690 100644 --- a/ports/simdjson/portfile.cmake +++ b/ports/simdjson/portfile.cmake @@ -26,6 +26,13 @@ vcpkg_copy_pdbs() vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
+ vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/simdjson.h
+ "#if SIMDJSON_USING_LIBRARY"
+ "#if 1"
+ )
+endif()
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
-file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
\ No newline at end of file diff --git a/ports/simdjson/vcpkg.json b/ports/simdjson/vcpkg.json index 4a8e88783..0eb3ed90d 100644 --- a/ports/simdjson/vcpkg.json +++ b/ports/simdjson/vcpkg.json @@ -1,6 +1,7 @@ { "name": "simdjson", "version": "0.9.2", + "port-version": 1, "description": "A extremely fast JSON library that can parse gigabytes of JSON per second", "homepage": "https://simdjson.org/", "license": "Apache-2.0", |
