Skip to content

Commit

Permalink
Patch manifold build for OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
starseeker committed Jul 9, 2024
1 parent bf58700 commit 920ec5d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifold/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (ENABLE_MANIFOLD)
ExternalProject_Add(MANIFOLD_BLD
URL "${CMAKE_CURRENT_SOURCE_DIR}/manifold"
BUILD_ALWAYS ${EXT_BUILD_ALWAYS} ${LOG_OPTS}
#PATCH_COMMAND ${PATCH_EXECUTABLE};-E;-p1;${PATCH_OPTIONS};-i;${CMAKE_CURRENT_SOURCE_DIR}/manifold.patch
PATCH_COMMAND ${PATCH_EXECUTABLE};-E;-p1;${PATCH_OPTIONS};-i;${CMAKE_CURRENT_SOURCE_DIR}/manifold.patch
CMAKE_ARGS
${BUILD_TYPE_SPECIFIER}
$<$<BOOL:${ZLIB_TARGET}>:-DZ_PREFIX=ON>
Expand Down
12 changes: 12 additions & 0 deletions manifold/manifold.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -Naur manifold/src/utilities/include/optional_assert.h MANIFOLD_BLD/src/utilities/include/optional_assert.h
--- manifold/src/utilities/include/optional_assert.h 2024-07-02 20:09:19.078438473 -0400
+++ MANIFOLD_BLD/src/utilities/include/optional_assert.h 2024-07-09 16:59:17.609083445 -0400
@@ -15,7 +15,7 @@
#pragma once

#include "public.h"
-#if MANIFOLD_EXCEPTIONS
+#ifdef MANIFOLD_EXCEPTIONS
#include <stdexcept>
#endif

0 comments on commit 920ec5d

Please sign in to comment.