Verified Commit 512f3639 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

cmake: fix pywrap linkage

parent b14a2206
...@@ -25,6 +25,10 @@ IF(IS_ABSOLUTE ${PYTHON_SITELIB}) ...@@ -25,6 +25,10 @@ IF(IS_ABSOLUTE ${PYTHON_SITELIB})
ELSE() ELSE()
SET(${PYWRAP}_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/${PYTHON_SITELIB}/${PROJECT_NAME}) SET(${PYWRAP}_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/${PYTHON_SITELIB}/${PROJECT_NAME})
ENDIF() ENDIF()
IF(WIN32)
TARGET_COMPILE_DEFINITIONS(${PYWRAP} PRIVATE -DNOMINMAX)
TARGET_LINK_LIBRARIES(${PYWRAP} PUBLIC ${PYTHON_LIBRARY})
ENDIF(WIN32)
SET_TARGET_PROPERTIES(${PYWRAP} SET_TARGET_PROPERTIES(${PYWRAP}
PROPERTIES PROPERTIES
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment