Skip to content

Commit

Permalink
Avoid error on osx for tbb parallel for
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasmeszaros authored and supermerill committed Apr 26, 2022
1 parent 8996180 commit 16a5ab5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libslic3r/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,9 @@ if(SLIC3R_PROFILE)
target_link_libraries(libslic3r Shiny)
endif()

target_compile_definitions(libslic3r PRIVATE $<$<BOOL:${SLIC3R_ALPHA}>:SLIC3R_ALPHA>)
if (APPLE)
target_compile_options(libslic3r PUBLIC "-fno-aligned-allocation")
endif ()

if (SLIC3R_PCH AND NOT SLIC3R_SYNTAXONLY)
add_precompiled_header(libslic3r pchheader.hpp FORCEINCLUDE)
Expand Down

0 comments on commit 16a5ab5

Please sign in to comment.