CMake: fix windows build and warning
Missing underscore in platform/platform_win32.cmake and a quote too many in macros.cmake
This commit is contained in:
@@ -1319,7 +1319,7 @@ function(find_python_package
|
||||
"'${PYTHON_LIBPATH}/python${PYTHON_VERSION}/vendor-packages/${package}', "
|
||||
"'${PYTHON_LIBPATH}/python${_PY_VER_MAJOR}/vendor-packages/${package}', "
|
||||
"\n"
|
||||
"The 'WITH_PYTHON_INSTALL_${_upper_package}' ""option will be ignored "
|
||||
"The 'WITH_PYTHON_INSTALL_${_upper_package}' option will be ignored "
|
||||
"when installing Python.\n"
|
||||
"The build will be usable, only add-ons that depend on this package won't be functional."
|
||||
)
|
||||
|
||||
@@ -518,7 +518,7 @@ if(WITH_JACK)
|
||||
endif()
|
||||
|
||||
set(_PYTHON_VERSION "3.10")
|
||||
string(REPLACE "." "" _PYTHON_VERSION_NO_DOTS ${PYTHON_VERSION})
|
||||
string(REPLACE "." "" _PYTHON_VERSION_NO_DOTS ${_PYTHON_VERSION})
|
||||
# Python executable is needed as part of the build-process,
|
||||
# note that building without Python is quite unusual.
|
||||
set(PYTHON_EXECUTABLE ${LIBDIR}/python/${_PYTHON_VERSION_NO_DOTS}/bin/python$<$<CONFIG:Debug>:_d>.exe)
|
||||
|
||||
Reference in New Issue
Block a user