Skip to content

Commit b6e0d50

Browse files
attilarepkakornelski
authored andcommitted
fix(build): link to libmath on unix
1 parent 3611168 commit b6e0d50

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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)