File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -63,16 +63,20 @@ set(GEOGRAM_LIB_ONLY ON CACHE BOOL "Only build the geogram library")
63
63
if (EMSCRIPTEN )
64
64
set (VORPALINE_PLATFORM "Emscripten-clang" CACHE STRING "Vorpaline platform" )
65
65
set (EMSCRIPTEN_DIR "/emsdk/upstream/emscripten" CACHE PATH "Emscripten directory" )
66
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unsafe-buffer-usage -Wno-switch-default -Wno-undefined-reinterpret-cast" )
67
66
endif ()
68
67
if (WASI )
69
68
set (VORPALINE_PLATFORM "Wasi-clang" CACHE STRING "Vorpaline platform" )
69
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_WASI_EMULATED_SIGNAL" )
70
+ set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lwasi-emulated-signal" )
71
+ endif ()
72
+ if (EMSCRIPTEN OR WASI )
73
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-missing-include-dirs -Wno-unsafe-buffer-usage -Wno-switch-default -Wno-undefined-reinterpret-cast -Wno-deprecated-declarations -Wno-documentation" )
70
74
endif ()
71
75
72
76
# set(GEOGRAM_GIT_REPOSITORY "https://github.com/BrunoLevy/geogram.git")
73
77
set (GEOGRAM_GIT_REPOSITORY "https://github.com/thewtex/geogram.git" )
74
- # v1.9.1
75
- set (GEOGRAM_GIT_TAG "4fec5761e60009baf35ba0412dde5b9b60437388 " )
78
+ # wasi-2025-01-28
79
+ set (GEOGRAM_GIT_TAG "e47b29fb83cb5d5df6031ab1e8a2a9130f8722ed " )
76
80
set (BUILD_SHARED_LIBS OFF )
77
81
FetchContent_Declare (
78
82
geogram
@@ -98,10 +102,6 @@ FetchContent_MakeAvailable(geogram mesh_plane_intersection)
98
102
include_directories (${geogram_SOURCE_DIR} /src/lib )
99
103
include_directories (${mesh_plane_intersection_SOURCE_DIR} /src )
100
104
101
- if (EMSCRIPTEN )
102
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unsafe-buffer-usage" )
103
- endif ()
104
-
105
105
foreach (pipeline geogram-conversion repair smooth-remesh keep-largest-component )
106
106
add_executable (${pipeline} ${pipeline} .cxx )
107
107
target_link_libraries (${pipeline} PUBLIC ${ITK_LIBRARIES} geogram )
You can’t perform that action at this time.
0 commit comments