Skip to content

Commit

Permalink
ignore filament compilation warning (#5673)
Browse files Browse the repository at this point in the history
  • Loading branch information
yxlao authored Nov 11, 2022
1 parent 7338831 commit 9f55154
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion 3rdparty/filament/filament_build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ set(lib_byproducts ${filament_LIBRARIES})
list(TRANSFORM lib_byproducts PREPEND ${FILAMENT_ROOT}/${lib_dir}/${CMAKE_STATIC_LIBRARY_PREFIX})
list(TRANSFORM lib_byproducts APPEND ${CMAKE_STATIC_LIBRARY_SUFFIX})

set(filament_cxx_flags "${CMAKE_CXX_FLAGS} -Wno-deprecated")
if(NOT WIN32)
# Issue Open3D#1909, filament#2146
set(filament_cxx_flags "${filament_cxx_flags} -fno-builtin")
endif()

ExternalProject_Add(
ext_filament
PREFIX filament
Expand All @@ -59,7 +65,7 @@ ExternalProject_Add(
-DCMAKE_CXX_COMPILER=${FILAMENT_CXX_COMPILER}
-DCMAKE_C_COMPILER_LAUNCHER=${CMAKE_C_COMPILER_LAUNCHER}
-DCMAKE_CXX_COMPILER_LAUNCHER=${CMAKE_CXX_COMPILER_LAUNCHER}
$<$<NOT:$<PLATFORM_ID:Windows>>:-DCMAKE_CXX_FLAGS="-fno-builtin"> # Issue Open3D#1909, filament#2146
-DCMAKE_CXX_FLAGS:STRING=${filament_cxx_flags}
-DCMAKE_INSTALL_PREFIX=${FILAMENT_ROOT}
-DUSE_STATIC_CRT=${STATIC_WINDOWS_RUNTIME}
-DUSE_STATIC_LIBCXX=ON
Expand Down

0 comments on commit 9f55154

Please sign in to comment.