Add full path to Python library, esp useful for VS generator
parent
125d59dfcd
commit
046bcaa031
|
@ -88,9 +88,12 @@ endfunction()
|
||||||
function(build_cythonized_cpp target cpp_file output_lib_we output_dir)
|
function(build_cythonized_cpp target cpp_file output_lib_we output_dir)
|
||||||
add_library(${target} MODULE ${cpp_file})
|
add_library(${target} MODULE ${cpp_file})
|
||||||
|
|
||||||
# Use .pyd extension instead of .dll on Windows
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
# Use .pyd extension instead of .dll on Windows
|
||||||
set_target_properties(${target} PROPERTIES SUFFIX ".pyd")
|
set_target_properties(${target} PROPERTIES SUFFIX ".pyd")
|
||||||
|
|
||||||
|
# Add full path to the Python library
|
||||||
|
target_link_libraries(${target} ${PYTHON_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
|
|
Loading…
Reference in New Issue