FIX: Support building with latest Xcode 15.3 (#4367)
* FIX: Support building with latest Xcode 15.3 Downgrade 'enum-constexpr-conversion' error to warning. Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com> * FIX: Do not assume libdeflate is not installed on the system Explicitly disable libdeflate support in TIFF depencency. PrusaSlicer already does that. Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com> * FIX: Downgrade enum-constexpr-conversion warning only on AppleClang 15+ Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com> --------- Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>
This commit is contained in:
parent
99a090b83c
commit
6264fe64b4
2 changed files with 5 additions and 0 deletions
|
@ -262,6 +262,10 @@ if (NOT MSVC AND ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMP
|
|||
add_compile_options(-Wno-deprecated-declarations)
|
||||
endif()
|
||||
|
||||
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "AppleClang" AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 15)
|
||||
add_compile_options(-Wno-error=enum-constexpr-conversion)
|
||||
endif()
|
||||
|
||||
#GCC generates loads of -Wunknown-pragmas when compiling igl. The fix is not easy due to a bug in gcc, see
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66943 or
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431
|
||||
|
|
1
deps/TIFF/TIFF.cmake
vendored
1
deps/TIFF/TIFF.cmake
vendored
|
@ -11,6 +11,7 @@ if (APPLE)
|
|||
-Dwebp:BOOL=OFF
|
||||
-Djbig:BOOL=OFF
|
||||
-Dzstd:BOOL=OFF
|
||||
-Dlibdeflate:BOOL=OFF
|
||||
-Dpixarlog:BOOL=OFF
|
||||
)
|
||||
else()
|
||||
|
|
Loading…
Reference in a new issue