Skip to content

Commit 9132b44

Browse files
committed
Link fixes
(cherry picked from commit c8acbdb109c8fc2ad333a2b27e16f1a6788fd3cb)
1 parent 67fafdf commit 9132b44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ else()
577577
endif()
578578

579579
if (DEFINED FreeImage_LIBS)
580-
target_link_libraries(${PROJECT_NAME} ${PNG_LIBRARY})
580+
target_link_libraries(${PROJECT_NAME} ${FreeImage_LIBS})
581581
endif()
582582

583583
# Preprocessor definitions
@@ -598,7 +598,7 @@ endif()
598598

599599
# Emscripten support
600600
if(EMSCRIPTEN)
601-
add_executable(FreeImage_wasm)
601+
add_executable(FreeImage_wasm ${FreeImage_SOURCES)
602602
target_link_libraries(FreeImage_wasm PRIVATE ${PROJECT_NAME}::${PROJECT_NAME})
603603
endif()
604604

0 commit comments

Comments
 (0)