CMake: only nag about requests py module once

This commit is contained in:
Campbell Barton
2014-03-26 07:02:42 +11:00
parent 765d077a1a
commit 2044201a9b

View File

@@ -2287,9 +2287,12 @@ if(WITH_PYTHON)
# pass, we have this in lib/python/site-packages
elseif(WITH_PYTHON_INSTALL_REQUESTS)
if(NOT EXISTS ${PYTHON_LIBPATH}/python${PYTHON_VERSION}/site-packages/requests)
# gets annoying otherwise...
if(FIRST_RUN)
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)
endif()
endif()