diff --git a/CMakeLists.txt b/CMakeLists.txt index d3deba1..8456637 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,8 +61,6 @@ fg_deprecate(WITH_FREEIMAGE FG_WITH_FREEIMAGE) fg_deprecate(USE_STATIC_FREEIMAGE FG_USE_STATIC_FREEIMAGE) fg_deprecate(WITH_TOOLKIT FG_USE_WINDOW_TOOLKIT) -message(STATUS "FreeImage Support turned ON") - if(Boost_FOUND AND NOT TARGET Boost::boost) add_library(Boost::boost INTERFACE IMPORTED) set_property(TARGET Boost::boost diff --git a/src/backend/CMakeLists.txt b/src/backend/CMakeLists.txt index b976f8b..ed63af2 100644 --- a/src/backend/CMakeLists.txt +++ b/src/backend/CMakeLists.txt @@ -50,7 +50,7 @@ target_include_directories(${BkndTargetName} if(FG_WITH_FREEIMAGE) target_compile_definitions(${BkndTargetName} PRIVATE USE_FREEIMAGE) if(FG_USE_STATIC_FREEIMAGE) - target_link_libraries(${BkndTargetName} PRIVATE FreeImage::FreeImage_STATIC) + target_link_libraries(${BkndTargetName} PUBLIC FreeImage::FreeImage_STATIC) else() target_link_libraries(${BkndTargetName} PRIVATE FreeImage::FreeImage) endif()