mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Fix of compilation on Linux & OSX: Cannot create a "slic3r" executable
next to a "slic3r" directory.
This commit is contained in:
@@ -48,6 +48,11 @@ add_subdirectory(slic3r)
|
|||||||
|
|
||||||
# Create a slic3r executable
|
# Create a slic3r executable
|
||||||
add_executable(slic3r slic3r.cpp)
|
add_executable(slic3r slic3r.cpp)
|
||||||
|
if(SLIC3R_GUI)
|
||||||
|
set_target_properties(slic3r PROPERTIES OUTPUT_NAME "slic3r-gui")
|
||||||
|
else()
|
||||||
|
set_target_properties(slic3r PROPERTIES OUTPUT_NAME "slic3r-console")
|
||||||
|
endif()
|
||||||
target_link_libraries(slic3r libslic3r libslic3r_gui ${wxWidgets_LIBRARIES} ${CURL_LIBRARIES})
|
target_link_libraries(slic3r libslic3r libslic3r_gui ${wxWidgets_LIBRARIES} ${CURL_LIBRARIES})
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
# add_compile_options(-stdlib=libc++)
|
# add_compile_options(-stdlib=libc++)
|
||||||
|
|||||||
Reference in New Issue
Block a user