From 45cf7d92d0a5f08610abf08456f26fc5af0ab3c2 Mon Sep 17 00:00:00 2001 From: Dan Rosser Date: Wed, 10 Jul 2024 14:58:10 +1000 Subject: [PATCH] FreeImage fix emscripten --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7fc88ec..892728d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -598,8 +598,8 @@ endif() # Emscripten support if(EMSCRIPTEN) - add_executable(FreeImage_wasm ${FreeImage_SOURCES)) - target_link_libraries(FreeImage_wasm PRIVATE ${PROJECT_NAME}::${PROJECT_NAME}) + add_executable(${PROJECT_NAME}_wasm ${FreeImage_SOURCES} ) + target_link_libraries(${PROJECT_NAME}_wasm PRIVATE ${PROJECT_NAME}::${PROJECT_NAME}) endif() # Apple-specific settings