WITH_PYTHON_FRAMEWORK cmake option for OSX
[blender.git] / source / creator / CMakeLists.txt
index bb5f34167bc7dfcceb666f5a779ff5f81e8262f1..69bad2b8cce3d14dff84565a073ac1273c2ca06c 100644 (file)
@@ -689,7 +689,7 @@ elseif(APPLE)
        )
 
        # python
-       if(WITH_PYTHON AND NOT WITH_PYTHON_MODULE)
+       if(WITH_PYTHON AND NOT WITH_PYTHON_MODULE AND NOT WITH_PYTHON_FRAMEWORK)
                # the python zip is first extract as part of the build process,
                # and then later installed as part of make install. this is much
                # quicker, and means we can easily exclude files on copy
@@ -742,7 +742,7 @@ elseif(APPLE)
                )
 
                # python
-               if(WITH_PYTHON)
+               if(WITH_PYTHON AND NOT WITH_PYTHON_FRAMEWORK)
                        add_custom_command(
                                OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/python
                                COMMAND rm -rf ${CMAKE_CURRENT_BINARY_DIR}/python/