Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-03-26 00:02:42 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-03-26 00:02:42 +0400
commit2044201a9b0b52919a0d5410a3100b974f63ce98 (patch)
tree1a463e09bb9206e30135f6a7810ab0ad1def3fde /CMakeLists.txt
parent765d077a1a1f6bbaa9c5c5808af313f07f0c06ab (diff)
CMake: only nag about requests py module once
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dc5fef885cd..eaa41467e5d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)
- 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")
+ # 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()