Cleanup/CMake: Fix superfluous warning of WITH_BOOST being turned off
authorRay Molenkamp <github@lazydodo.com>
Sun, 9 Feb 2020 00:17:28 +0000 (17:17 -0700)
committerRay Molenkamp <github@lazydodo.com>
Sun, 9 Feb 2020 00:17:28 +0000 (17:17 -0700)
The check for turning boost off did not actually check if WITH_BOOST
was on to start with leading to a superfluous warning during configuration.

CMakeLists.txt

index 60656a9e4fa9c8bdeddf967723534275ddbe9e45..820fea6982cd3a827893b7dbeeaf06a0ef4dda70 100644 (file)
@@ -621,7 +621,7 @@ set_and_warn_dependency(WITH_BOOST WITH_OPENCOLORIO    OFF)
 set_and_warn_dependency(WITH_BOOST WITH_QUADRIFLOW     OFF)
 set_and_warn_dependency(WITH_BOOST WITH_USD            OFF)
 
-if(NOT (WITH_CYCLES OR WITH_OPENIMAGEIO OR WITH_INTERNATIONAL OR
+if(WITH_BOOST AND NOT (WITH_CYCLES OR WITH_OPENIMAGEIO OR WITH_INTERNATIONAL OR
    WITH_OPENVDB OR WITH_OPENCOLORIO OR WITH_USD))
   message(STATUS "No dependencies need 'WITH_BOOST' forcing WITH_BOOST=OFF")
   set(WITH_BOOST OFF)