Skip to content

Commit

Permalink
Modify STB to avoid conflict with UE 5.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Nov 7, 2024
1 parent eabc089 commit 00db408
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extern/vcpkg-overlays/stb/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

# Even when told to create static symbols, STB creates two symbols globally, which breaks packaging in UE 5.4. Fix that.
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/stb_image_resize2.h" "STBIR__SIMDI_CONST(stbir__s" "STBIRDEF STBIR__SIMDI_CONST(stbir__s")

0 comments on commit 00db408

Please sign in to comment.