Skip to content

Commit

Permalink
Use correct LINK keyword for static freeimage linking
Browse files Browse the repository at this point in the history
  • Loading branch information
9prady9 committed Apr 22, 2021
1 parent 3ec8277 commit 878dd27
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/backend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 878dd27

Please sign in to comment.