Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FormerLurker/ArcWelderLib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFormerLurker <hochgebe@gmail.com>2020-05-12 22:12:55 +0300
committerFormerLurker <hochgebe@gmail.com>2020-05-12 22:12:55 +0300
commitbb9f17caf0ea5b7cfe256bea32847a87a97676f1 (patch)
tree9460adbab230ef08225c765ce8d8e64e1af1c026 /PyArcWelder
parent4f25bb0d6e94801668927dcaa057bf12a4f81b26 (diff)
Link to python if APPLE CMAKE
Diffstat (limited to 'PyArcWelder')
-rw-r--r--PyArcWelder/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/PyArcWelder/CMakeLists.txt b/PyArcWelder/CMakeLists.txt
index 88631a0..773ff07 100644
--- a/PyArcWelder/CMakeLists.txt
+++ b/PyArcWelder/CMakeLists.txt
@@ -40,10 +40,12 @@ endif()
target_link_libraries(${PROJECT_NAME} ArcWelder GcodeProcessorLib)
# On Windows, it is required to link to the Python libraries
-if(WIN32)
+if(WIN32 or APPLE)
target_link_libraries(${PROJECT_NAME} ArcWelder GcodeProcessorLib ${PYTHON_LIBRARIES})
endif()
+if(MACOS)
+
# Expose the GcodeProcessorLib, and ArcWelder's Definitions.
set(${PROJECT_NAME}_DEFINITIONS ${GcodeProcessorLib_DEFINITIONS}
${ArcWelder_DEFINITIONS}