[Bf-blender-cvs] [84285c1e344] master: Fix T58275: WITH_OPENSUBDIV not enabled by default with some CMake versions.

Brecht Van Lommel noreply at git.blender.org
Fri Nov 30 11:52:53 CET 2018


Commit: 84285c1e344067363f814f4d3861227cc9890d41
Author: Brecht Van Lommel
Date:   Fri Nov 30 11:50:23 2018 +0100
Branches: master
https://developer.blender.org/rB84285c1e344067363f814f4d3861227cc9890d41

Fix T58275: WITH_OPENSUBDIV not enabled by default with some CMake versions.

Solution provided by Ulysse Martin.

===================================================================

M	CMakeLists.txt

===================================================================

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 83177defe6f..7359151d9a3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -245,7 +245,7 @@ option(WITH_OPENCOLORIO   "Enable OpenColorIO color management" ${_init_OPENCOLO
 # Compositor
 option(WITH_COMPOSITOR         "Enable the tile based nodal compositor" ON)
 
-option(WITH_OPENSUBDIV    "Enable OpenSubdiv for surface subdivision" _init_OPENSUBDIV)
+option(WITH_OPENSUBDIV    "Enable OpenSubdiv for surface subdivision" ${_init_OPENSUBDIV})
 
 option(WITH_OPENVDB       "Enable features relying on OpenVDB" OFF)
 option(WITH_OPENVDB_BLOSC "Enable blosc compression for OpenVDB, only enable if OpenVDB was built with blosc support" OFF)



More information about the Bf-blender-cvs mailing list