blob: 47e4cc1e539bd0d6b5c26fa5cbf02c9e54764705 (
plain)
1
2
3
4
5
6
7
8
9
|
libm is used with mozjpeg and built libjpeg, but not if using system's,
yet jpegoptim.c uses floor() either way.
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -356,3 +356,3 @@
target_include_directories(${PROJECT_NAME} PRIVATE ${JPEG_INCLUDE_DIRS})
- target_link_libraries(${PROJECT_NAME} JPEG::JPEG)
+ target_link_libraries(${PROJECT_NAME} JPEG::JPEG m)
endif()
|