cmake: remove python include in the wm module, set opengl as a system include.
This commit is contained in:
@@ -1041,7 +1041,7 @@ endif()
|
|||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# Configure OpenGL.
|
# Configure OpenGL.
|
||||||
find_package(OpenGL)
|
find_package(OpenGL)
|
||||||
blender_include_dirs("${OPENGL_INCLUDE_DIR}")
|
blender_include_dirs_sys("${OPENGL_INCLUDE_DIR}")
|
||||||
# unset(OPENGL_LIBRARIES CACHE) # not compat with older cmake
|
# unset(OPENGL_LIBRARIES CACHE) # not compat with older cmake
|
||||||
# unset(OPENGL_xmesa_INCLUDE_DIR CACHE) # not compat with older cmake
|
# unset(OPENGL_xmesa_INCLUDE_DIR CACHE) # not compat with older cmake
|
||||||
|
|
||||||
|
@@ -101,7 +101,6 @@ endif()
|
|||||||
|
|
||||||
if(WITH_PYTHON)
|
if(WITH_PYTHON)
|
||||||
list(APPEND INC ../python)
|
list(APPEND INC ../python)
|
||||||
list(APPEND INC_SYS ${PYTHON_INCLUDE_DIRS})
|
|
||||||
add_definitions(-DWITH_PYTHON)
|
add_definitions(-DWITH_PYTHON)
|
||||||
|
|
||||||
if(WITH_PYTHON_SECURITY)
|
if(WITH_PYTHON_SECURITY)
|
||||||
|
Reference in New Issue
Block a user