From Wang Rui, "The Python header will look for its libraries using "#pragma comment(lib,"python32_d.lib")" for MSVC. So user-specified libraries will not really be set for the osgdb_python plugin. This small fix may help locate the Python libraries after putting the CMakeLists.txt into src/osgPlugins/python
"
This commit is contained in:
@@ -9,5 +9,10 @@ SET(TARGET_SRC
|
||||
SET(TARGET_EXTERNAL_LIBRARIES ${TARGET_EXTERNAL_LIBRARIES} ${PYTHON_LIBRARY})
|
||||
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIR} )
|
||||
|
||||
IF(MSVC)
|
||||
GET_FILENAME_COMPONENT(PYTHON_LIB_DIR ${PYTHON_LIBRARY} PATH)
|
||||
LINK_DIRECTORIES(${PYTHON_LIB_DIR})
|
||||
ENDIF(MSVC)
|
||||
|
||||
#### end var setup ###
|
||||
SETUP_PLUGIN(python)
|
||||
|
||||
Reference in New Issue
Block a user