CMake: only nag about requests py module once
This commit is contained in:
@@ -2287,9 +2287,12 @@ if(WITH_PYTHON)
|
|||||||
# pass, we have this in lib/python/site-packages
|
# pass, we have this in lib/python/site-packages
|
||||||
elseif(WITH_PYTHON_INSTALL_REQUESTS)
|
elseif(WITH_PYTHON_INSTALL_REQUESTS)
|
||||||
if(NOT EXISTS ${PYTHON_LIBPATH}/python${PYTHON_VERSION}/site-packages/requests)
|
if(NOT EXISTS ${PYTHON_LIBPATH}/python${PYTHON_VERSION}/site-packages/requests)
|
||||||
message(WARNING "'requests' path could not be found in:\n"
|
# gets annoying otherwise...
|
||||||
"'${PYTHON_LIBPATH}/python${PYTHON_VERSION}/site-packages/requests'\n"
|
if(FIRST_RUN)
|
||||||
"WITH_PYTHON_INSTALL_REQUESTS option will be ignored when installing python")
|
message(WARNING "'requests' path could not be found in:\n"
|
||||||
|
"'${PYTHON_LIBPATH}/python${PYTHON_VERSION}/site-packages/requests'\n"
|
||||||
|
"WITH_PYTHON_INSTALL_REQUESTS option will be ignored when installing python")
|
||||||
|
endif()
|
||||||
set(WITH_PYTHON_INSTALL_REQUESTS OFF)
|
set(WITH_PYTHON_INSTALL_REQUESTS OFF)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Reference in New Issue
Block a user