CMake: Fix use of some option which was never defined
[blender.git] / CMakeLists.txt
index f3c22d9b717012f33aa82d4c2c5ff2e154f68bed..fe226dd769b941e683e7674bf53a02254205bda3 100644 (file)
@@ -731,7 +731,7 @@ elseif(WITH_CYCLES OR WITH_OPENIMAGEIO OR WITH_AUDASPACE OR WITH_INTERNATIONAL O
        # Keep enabled
 else()
        # New dependency graph needs either Boost or C++11 for function bindings.
-       if(NOT USE_CXX11)
+       if(NOT WITH_CXX11)
                # Enabled but we don't need it
                set(WITH_BOOST OFF)
        endif()