Skip to content

Commit

Permalink
Put -std=gnu++17 under gcc version >=14.1 to avoid compile-time error…
Browse files Browse the repository at this point in the history
… from earlier implementation of __int28
  • Loading branch information
LightTreasure authored and lanewei120 committed Jul 13, 2024
1 parent 2ba490a commit e170819
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/libslic3r/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,12 @@ if (_opts)
target_compile_options(libslic3r_cgal PRIVATE "${_opts_bad}")
endif()

set_property(TARGET libslic3r PROPERTY CXX_STANDARD 17)
set_property(TARGET libslic3r PROPERTY CXX_EXTENSIONS OFF)
set_property(TARGET libslic3r_cgal PROPERTY CXX_STANDARD 17)
set_property(TARGET libslic3r_cgal PROPERTY CXX_EXTENSIONS OFF)
if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 14.1)
set_property(TARGET libslic3r PROPERTY CXX_STANDARD 17)
set_property(TARGET libslic3r PROPERTY CXX_EXTENSIONS OFF)
set_property(TARGET libslic3r_cgal PROPERTY CXX_STANDARD 17)
set_property(TARGET libslic3r_cgal PROPERTY CXX_EXTENSIONS OFF)
endif()

target_link_libraries(libslic3r_cgal PRIVATE ${_cgal_tgt} libigl mcut)

Expand Down

0 comments on commit e170819

Please sign in to comment.