Skip to content

Commit d0e5e12

Browse files
committed
fix(build): link to libmath on unix
1 parent 97e2e1d commit d0e5e12

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,10 @@ if(ENABLE_STATIC)
868868

869869
add_executable(example-static example.c)
870870
target_link_libraries(example-static jpeg-static)
871+
if(UNIX)
872+
target_link_libraries(example-static m)
873+
endif()
874+
871875
endif()
872876

873877
add_executable(rdjpgcom rdjpgcom.c)

0 commit comments

Comments
 (0)