Skip to content

Commit c917395

Browse files
author
Dan Dees
committed
Python 3.6 requies PY3_DLLNAME definition
1 parent b26dbd3 commit c917395

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/libpython/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ if(UNIX)
2727
PYTHONPATH="${PYTHONPATH}"
2828
)
2929
elseif(WIN32)
30+
# needed for python 3.5
31+
add_definitions(-DPY3_DLLNAME="python3${CMAKE_DEBUG_POSTFIX}")
3032
list(APPEND MODULE_SOURCES
3133
${SRC_DIR}/PC/getpathp.c
3234
)

0 commit comments

Comments
 (0)