diff --git a/cmake/modules/FindSTB.cmake b/cmake/modules/FindSTB.cmake index 10e8afdc..9da76b57 100644 --- a/cmake/modules/FindSTB.cmake +++ b/cmake/modules/FindSTB.cmake @@ -1,4 +1,4 @@ -find_path(STB_INCLUDE_DIR stb/stb_image.h) +find_path(STB_INCLUDE_DIR stb_image.h PATH_SUFFIXES stb) include(FindPackageHandleStandardArgs) diff --git a/src/libs/image/impl/stb/JPEGImage.cpp b/src/libs/image/impl/stb/JPEGImage.cpp index 4bfcef4c..280fcd6e 100644 --- a/src/libs/image/impl/stb/JPEGImage.cpp +++ b/src/libs/image/impl/stb/JPEGImage.cpp @@ -20,7 +20,7 @@ #include "JPEGImage.hpp" #define STB_IMAGE_WRITE_IMPLEMENTATION -#include +#include #include "image/Exception.hpp" #include "RawImage.hpp" diff --git a/src/libs/image/impl/stb/RawImage.cpp b/src/libs/image/impl/stb/RawImage.cpp index a68f36b9..ba7a80b9 100644 --- a/src/libs/image/impl/stb/RawImage.cpp +++ b/src/libs/image/impl/stb/RawImage.cpp @@ -25,8 +25,8 @@ #define STBIR_DEFAULT_FILTER_DOWNSAMPLE STBIR_FILTER_MITCHELL #define STBIR_DEFAULT_FILTER_UPSAMPLE STBIR_FILTER_CATMULLROM -#include -#include +#include +#include #include "JPEGImage.hpp"