[Bf-blender-cvs] [2044201] master: CMake: only nag about requests py module once
Campbell Barton
noreply at git.blender.org
Tue Mar 25 21:03:05 CET 2014
Commit: 2044201a9b0b52919a0d5410a3100b974f63ce98
Author: Campbell Barton
Date: Wed Mar 26 07:02:42 2014 +1100
https://developer.blender.org/rB2044201a9b0b52919a0d5410a3100b974f63ce98
CMake: only nag about requests py module once
===================================================================
M CMakeLists.txt
===================================================================
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dc5fef8..eaa4146 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()
More information about the Bf-blender-cvs
mailing list