mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-30 16:42:43 +00:00
Fixed compilation on OSX & Linux
This commit is contained in:
@@ -97,7 +97,7 @@ if(SLIC3R_PROFILE)
|
||||
target_link_libraries(XS Shiny)
|
||||
endif()
|
||||
|
||||
target_include_directories(XS PRIVATE src src/libslic3r) # Local include directories
|
||||
target_include_directories(XS PRIVATE src)
|
||||
target_compile_definitions(XS PRIVATE -DSLIC3RXS)
|
||||
set_target_properties(XS PROPERTIES PREFIX "") # Prevent cmake from generating libXS.so instead of XS.so
|
||||
|
||||
@@ -157,7 +157,7 @@ target_link_libraries(XS ${EXPAT_LIBRARIES})
|
||||
# target_link_libraries(XS ${GLEW_LIBRARIES})
|
||||
|
||||
# Install the XS.pm and XS.{so,dll,bundle} into the local-lib directory.
|
||||
set(PERL_LOCAL_LIB_DIR "../local-lib/lib/perl5/${PerlEmbed_ARCHNAME}")
|
||||
set(PERL_LOCAL_LIB_DIR "../../local-lib/lib/perl5/${PerlEmbed_ARCHNAME}")
|
||||
add_custom_command(
|
||||
TARGET XS
|
||||
POST_BUILD
|
||||
@@ -175,8 +175,6 @@ if(APPLE)
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(XS PRIVATE src src/libslic3r)
|
||||
|
||||
if(SLIC3R_PROFILE)
|
||||
target_link_libraries(Shiny)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user