mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Link against python in python modules for now. Refs #639
* This really isn't ideal as it means the python module will only work with that specific major.minor version of python, when it could in theory work with any python version above 3.2 or so, depending on what features are used. * Since we're not distributing these modules yet though, add this linking to support -Wl,--no-undefined.
This commit is contained in:
@@ -35,6 +35,9 @@ set(CMAKE_SKIP_BUILD_RPATH TRUE)
|
||||
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
||||
set(CMAKE_INSTALL_RPATH "$ORIGIN/:$ORIGIN/../lib/")
|
||||
|
||||
# Add python library
|
||||
set (CMAKE_SHARED_LINKER_FLAGS "${PYTHON_LIBRARY} ${CMAKE_SHARED_LINKER_FLAGS}")
|
||||
|
||||
add_library(_renderdoc SHARED
|
||||
${CMAKE_BINARY_DIR}/qrenderdoc/renderdoc_python.cxx
|
||||
pyrenderdoc_stub.cpp)
|
||||
|
||||
Reference in New Issue
Block a user