OpenSubdiv: Fix for missing OpenMP device when building with SCons
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 4 Aug 2015 16:25:34 +0000 (18:25 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 4 Aug 2015 16:25:34 +0000 (18:25 +0200)
intern/opensubdiv/SConscript

index e0bcc7f6b0fb6683df893a4d13dcfe8bcf1019c2..0532bae1c29c28f9084d2e7881792ebdfd488ea1 100644 (file)
@@ -58,6 +58,9 @@ checkOpenSubdivHeaderDefine("tbbEvaluator.h", 'OPENSUBDIV_HAS_TBB')
 checkOpenSubdivHeaderDefine("glXFBEvaluator.h", 'OPENSUBDIV_HAS_GLSL_TRANSFORM_FEEDBACK')
 checkOpenSubdivHeaderDefine("glComputeEvaluator.h", 'OPENSUBDIV_HAS_GLSL_COMPUTE')
 
+if env['WITH_BF_LIBMV']:
+    defs += ['OPENSUBDIV_HAS_OPENMP']
+
 # generated data files
 sources.extend((
     os.path.join(env['DATA_SOURCES'], "gpu_shader_opensubd_display.glsl.c"),