no need to add own define for openmp.
This commit is contained in:
@@ -170,10 +170,6 @@ if env['WITH_BF_OIIO']:
|
||||
if env['WITH_BF_PLAYER']:
|
||||
defs.append('WITH_PLAYER')
|
||||
|
||||
if env['WITH_BF_OPENMP']:
|
||||
defs.append('WITH_OPENMP')
|
||||
|
||||
|
||||
|
||||
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'win64-mingw', 'linuxcross', 'win64-vc'):
|
||||
incs += ' ' + env['BF_PTHREADS_INC']
|
||||
|
||||
@@ -242,10 +242,5 @@ if(WITH_PLAYER)
|
||||
add_definitions(-DWITH_PLAYER)
|
||||
endif()
|
||||
|
||||
if(WITH_OPENMP)
|
||||
add_definitions(-DWITH_OPENMP)
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
blender_add_lib(bf_python "${SRC}" "${INC}" "${INC_SYS}")
|
||||
|
||||
@@ -289,7 +289,7 @@ static PyObject *make_builtopts_info(void)
|
||||
SetObjIncref(Py_False);
|
||||
#endif
|
||||
|
||||
#ifdef WITH_OPENMP
|
||||
#ifdef _OPENMP
|
||||
SetObjIncref(Py_True);
|
||||
#else
|
||||
SetObjIncref(Py_False);
|
||||
|
||||
Reference in New Issue
Block a user