]> rtime.felk.cvut.cz Git - opencv.git/commitdiff
FreeBSD build fix
authorjamesbowman <jamesbowman@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Thu, 30 Jul 2009 14:14:13 +0000 (14:14 +0000)
committerjamesbowman <jamesbowman@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Thu, 30 Jul 2009 14:14:13 +0000 (14:14 +0000)
git-svn-id: https://code.ros.org/svn/opencv/trunk@1997 73c94f0f-984f-4a5f-82bc-2d8db8d8ee08

opencv/CMakeLists.txt

index b4040d1dcbc00a23f8857b41c3c1581e96683f00..221693e5ad4a5df278cf816fb24b6d1c360fb7fb 100644 (file)
@@ -369,7 +369,11 @@ if(UNIX)
             endif()
         endif()
         
-        set(OPENCV_LINKER_LIBS dl m pthread rt)
+        if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
+            set(OPENCV_LINKER_LIBS m pthread)
+        else()
+            set(OPENCV_LINKER_LIBS dl m pthread rt)
+        endif()
     else()
         add_definitions(-DHAVE_ALLOCA -DHAVE_ALLOCA_H -DHAVE_LIBPTHREAD -DHAVE_UNISTD_H)
     endif()