We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b755547 commit 270e7b9Copy full SHA for 270e7b9
third_party/proton/CMakeLists.txt
@@ -22,5 +22,10 @@ else()
22
include_directories(${Python3_INCLUDE_DIRS})
23
endif()
24
25
+# Check if the platform is MacOS
26
+if(APPLE)
27
+ set(PROTON_PYTHON_LDFLAGS "-undefined dynamic_lookup -flto")
28
+endif()
29
+
30
include_directories(${CUPTI_INCLUDE_DIR})
-target_link_libraries(proton ${Python_LIBRARIES})
31
+target_link_libraries(proton PRIVATE ${Python_LIBRARIES} ${PROTON_PYTHON_LDFLAGS})
0 commit comments