mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-28 07:32:01 +08:00
Fix broken build on non-linux platforms
This commit is contained in:
parent
3e8ef6819a
commit
9d0d0cde21
@ -248,14 +248,16 @@ if (NOT TARGET ${_cgal_tgt})
|
|||||||
set (_cgal_tgt CGAL::CGAL)
|
set (_cgal_tgt CGAL::CGAL)
|
||||||
endif ()
|
endif ()
|
||||||
get_target_property(_opts ${_cgal_tgt} INTERFACE_COMPILE_OPTIONS)
|
get_target_property(_opts ${_cgal_tgt} INTERFACE_COMPILE_OPTIONS)
|
||||||
set(_opts_bad "${_opts}")
|
if (_opts)
|
||||||
set(_opts_good "${_opts}")
|
set(_opts_bad "${_opts}")
|
||||||
list(FILTER _opts_bad INCLUDE REGEX frounding-math)
|
set(_opts_good "${_opts}")
|
||||||
list(FILTER _opts_good EXCLUDE REGEX frounding-math)
|
list(FILTER _opts_bad INCLUDE REGEX frounding-math)
|
||||||
set_target_properties(${_cgal_tgt} PROPERTIES INTERFACE_COMPILE_OPTIONS "${_opts_good}")
|
list(FILTER _opts_good EXCLUDE REGEX frounding-math)
|
||||||
|
set_target_properties(${_cgal_tgt} PROPERTIES INTERFACE_COMPILE_OPTIONS "${_opts_good}")
|
||||||
|
target_compile_options(libslic3r_cgal PRIVATE "${_opts_bad}")
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(libslic3r_cgal PRIVATE ${_cgal_tgt} libigl)
|
target_link_libraries(libslic3r_cgal PRIVATE ${_cgal_tgt} libigl)
|
||||||
target_compile_options(libslic3r_cgal PRIVATE "${_opts_bad}")
|
|
||||||
|
|
||||||
encoding_check(libslic3r)
|
encoding_check(libslic3r)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user