CMake: only show py module install options when used
authorCampbell Barton <ideasman42@gmail.com>
Tue, 15 Mar 2016 12:50:44 +0000 (23:50 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 15 Mar 2016 12:52:34 +0000 (23:52 +1100)
CMakeLists.txt

index 6b6e07de36f862c57983af76e1ef444e1f3e5c7b..4010ee6416f632e32092332e3160b12ffd982d58 100644 (file)
@@ -362,19 +362,23 @@ if(UNIX AND NOT APPLE)
                mark_as_advanced(WITH_BOOST_ICU)
        endif()
 endif()
+
 option(WITH_PYTHON_INSTALL       "Copy system python into the blender install folder" ON)
-option(WITH_PYTHON_INSTALL_NUMPY "Copy system numpy into the blender install folder"  ON)
-set(PYTHON_NUMPY_PATH            "" CACHE PATH "Path to python site-packages or dist-packages containing 'numpy' module")
-mark_as_advanced(PYTHON_NUMPY_PATH)
-option(WITH_CPU_SSE              "Enable SIMD instruction if they're detected on the host machine" ON)
-mark_as_advanced(WITH_CPU_SSE)
+if(WITH_PYTHON_INSTALL)
+       option(WITH_PYTHON_INSTALL_NUMPY "Copy system numpy into the blender install folder"  ON)
+       set(PYTHON_NUMPY_PATH            "" CACHE PATH "Path to python site-packages or dist-packages containing 'numpy' module")
+       mark_as_advanced(PYTHON_NUMPY_PATH)
 
-if(UNIX AND NOT APPLE)
-       option(WITH_PYTHON_INSTALL_REQUESTS "Copy system requests into the blender install folder" ON)
-       set(PYTHON_REQUESTS_PATH "" CACHE PATH "Path to python site-packages or dist-packages containing 'requests' module")
-       mark_as_advanced(PYTHON_REQUESTS_PATH)
+       if(UNIX AND NOT APPLE)
+               option(WITH_PYTHON_INSTALL_REQUESTS "Copy system requests into the blender install folder" ON)
+               set(PYTHON_REQUESTS_PATH "" CACHE PATH "Path to python site-packages or dist-packages containing 'requests' module")
+               mark_as_advanced(PYTHON_REQUESTS_PATH)
+       endif()
 endif()
 
+option(WITH_CPU_SSE              "Enable SIMD instruction if they're detected on the host machine" ON)
+mark_as_advanced(WITH_CPU_SSE)
+
 # Cycles
 option(WITH_CYCLES                                     "Enable Cycles Render Engine" ON)
 option(WITH_CYCLES_STANDALONE          "Build Cycles standalone application" OFF)