diff --git a/intern/cycles/cmake/macros.cmake b/intern/cycles/cmake/macros.cmake index 6f28b916e83..494618d6ddb 100644 --- a/intern/cycles/cmake/macros.cmake +++ b/intern/cycles/cmake/macros.cmake @@ -127,7 +127,7 @@ macro(cycles_external_libraries_append libraries) if(WITH_PATH_GUIDING) list(APPEND ${libraries} ${OPENPGL_LIBRARIES}) endif() - if(WITH_WEBP) + if(WITH_IMAGE_WEBP) list(APPEND ${libraries} ${WEBP_LIBRARIES}) endif() if(UNIX AND NOT APPLE) diff --git a/source/blender/python/intern/CMakeLists.txt b/source/blender/python/intern/CMakeLists.txt index 0f5ebf77c1e..2c50389be18 100644 --- a/source/blender/python/intern/CMakeLists.txt +++ b/source/blender/python/intern/CMakeLists.txt @@ -239,7 +239,7 @@ if(WITH_IMAGE_OPENJPEG) add_definitions(-DWITH_OPENJPEG) endif() -if(WITH_WEBP) +if(WITH_IMAGE_WEBP) add_definitions(-DWITH_WEBP) endif()