From a13219484c1b1821faca6b39804058b44ae69d10 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 23 Aug 2024 22:05:54 -0400 Subject: [PATCH] Directly link to FreeImage headers --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 34c5fd5..008a9af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,7 +41,9 @@ include_directories( ${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/imgui ${CMAKE_SOURCE_DIR}/imgui/backends - ${FreeImage_INCLUDE_DIR} + $ENV{VCPKG_ROOT}/packages/freeimage_x64-linux/include/FreeImage.h + $ENV{VCPKG_ROOT}/packages/freeimage_x64-linux/include/FreeImagePlus.h + #${FreeImage_INCLUDE_DIR} ) # Link libraries using vcpkg