Skip to content

Commit

Permalink
MSVC: Fix build issue with webp
Browse files Browse the repository at this point in the history
The webp variables should only be set if
the libs actually exist in the lib folder
  • Loading branch information
LazyDodo committed Mar 25, 2022
1 parent 97f2210 commit 59de9ce
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build_files/cmake/platform/platform_win32.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,12 @@ endif()

windows_find_package(WebP)
if(NOT WEBP_FOUND)
set(WEBP_INCLUDE_DIRS ${LIBDIR}/webp/include)
set(WEBP_ROOT_DIR ${LIBDIR}/webp)
set(WEBP_LIBRARIES ${LIBDIR}/webp/lib/webp.lib ${LIBDIR}/webp/lib/webpdemux.lib ${LIBDIR}/webp/lib/webpmux.lib)
set(WEBP_FOUND ON)
if(EXISTS ${LIBDIR}/webp)
set(WEBP_INCLUDE_DIRS ${LIBDIR}/webp/include)
set(WEBP_ROOT_DIR ${LIBDIR}/webp)
set(WEBP_LIBRARIES ${LIBDIR}/webp/lib/webp.lib ${LIBDIR}/webp/lib/webpdemux.lib ${LIBDIR}/webp/lib/webpmux.lib)
set(WEBP_FOUND ON)
endif()
endif()

if(WITH_OPENCOLLADA)
Expand Down

0 comments on commit 59de9ce

Please sign in to comment.