Mercurial > hg > orthanc-python
diff CMakeLists.txt @ 24:3bed39e4b85f
fix prefix and suffix for Windows Python libraries
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Fri, 03 Apr 2020 12:12:09 +0200 |
parents | 874a3fef26ff |
children | 3b59f5dd7e72 |
line wrap: on
line diff
--- a/CMakeLists.txt Fri Apr 03 11:28:04 2020 +0200 +++ b/CMakeLists.txt Fri Apr 03 12:12:09 2020 +0200 @@ -26,12 +26,14 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") if (MSVC) + set(Prefix "") set(Suffix ".lib") else() + set(Prefix "lib") set(Suffix ".a") endif() - set(PYTHON_LIBRARY_NAME libpython${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}.${Suffix}) + set(PYTHON_LIBRARY_NAME ${Prefix}python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}${Suffix}) set(PYTHON_INCLUDE_DIRS ${PYTHON_WINDOWS_ROOT}/include) set(PYTHON_LIBRARIES ${PYTHON_WINDOWS_ROOT}/libs/${PYTHON_LIBRARY_NAME})