Skip to content

Commit

Permalink
Add patch
Browse files Browse the repository at this point in the history
  • Loading branch information
MonicaLiu committed Feb 14, 2023
1 parent 2c2da03 commit f3b575e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 13 additions & 0 deletions ports/seacas/fix-headers.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/packages/seacas/libraries/ioss/src/text_mesh/Iotm_TextMeshFuncs.h b/packages/seacas/libraries/ioss/src/text_mesh/Iotm_TextMeshFuncs.h
index 67512ba..589cac2 100644
--- a/packages/seacas/libraries/ioss/src/text_mesh/Iotm_TextMeshFuncs.h
+++ b/packages/seacas/libraries/ioss/src/text_mesh/Iotm_TextMeshFuncs.h
@@ -6,7 +6,7 @@

// ####################### Start Clang Header Tool Managed Headers ########################
// clang-format off
-#include <ctype.h> // for toupper
+#include <cctype> // for toupper, isspace, isdigit
#include <stddef.h> // for size_t
#include <algorithm> // for remove, etc
#include <iterator> // for insert_iterator
3 changes: 1 addition & 2 deletions ports/seacas/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ vcpkg_from_github(
fix-ioss-includes.patch
deps-and-shared.patch
fix-mpi.patch
fix-headers.patch
)

if(NOT VCPKG_TARGET_IS_OSX)
Expand Down Expand Up @@ -87,8 +88,6 @@ if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cmake/Seacas")
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/Seacas" PACKAGE_NAME cmake/Seacas DO_NOT_DELETE_PARENT_CONFIG_PATH NO_PREFIX_CORRECTION)
endif()

vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/Iotm_TextMeshFuncs.h" "#include <ctype.h>" "#include <cctype> // for toupper, isspace, isdigit")

set(tool_names cgns_decomp cth_pressure_map
io_info io_modify io_shell
shell_to_hex skinner sphgen struc_to_unstruc)
Expand Down

0 comments on commit f3b575e

Please sign in to comment.