blob: 97619975d9b64edf72bc98cafbf3774792f590a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Link against -lm (mathlib) because ScaleSpace.c (which is part of the internal libsift.a)
is using the exp() function, see http://bugs.gentoo.org/472150
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -121,7 +121,7 @@
ADD_LIBRARY(libsift STATIC ${LIBSIFT_SOURCES})
-set(all_libs libsift ${JPEG_LIBRARIES} ${TIFF_LIBRARIES}
+set(all_libs libsift m ${JPEG_LIBRARIES} ${TIFF_LIBRARIES}
${PNG_LIBRARIES} ${ZLIB_LIBRARIES} ${PANO13_LIBRARIES} ${LIBXML2_LIBRARIES})
add_executable(generatekeys GenerateKeys.c)
|