Skip to content

Commit acbab5b

Browse files
klsruanseproDev
authored andcommitted
Fix lodepng load
1 parent f89e99a commit acbab5b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

dependencies/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ if (NOT UNIX)
1919
endif (UNIX)
2020

2121
# lodepng
22-
project(lodepng_wrap LANGUAGES CXX)
22+
project(lodepng_wrap LANGUAGES C)
2323

24-
set(LODEPNG_SRC subprojects/lodepng/lodepng.cpp)
24+
set(LODEPNG_SRC subprojects/lodepng/lodepng.c)
2525
set(CMAKE_INSTALL_LIBDIR ${CMAKE_SOURCE_DIR}/lodepng_build)
2626

2727
add_library(lodepng_wrap SHARED ${LODEPNG_SRC})

dependencies/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ git checkout 784ff113071f1fa7832ebe74667f2fd0756c634f
1919

2020
git clone https://github.com/lvandeve/lodepng.git $sub/lodepng && cd $sub/lodepng
2121
git checkout 997936fd2b45842031e4180d73d7880e381cf33f
22+
cp -f $sub/lodepng/lodepng.cpp $sub/lodepng/lodepng.c
2223

2324
git clone https://github.com/rcancro/giflib.git $sub/giflib && cd $sub/giflib
2425
git checkout 4b0c893cfddf16421bd3f59207fdf65f06e9a10d

0 commit comments

Comments
 (0)