From 9e13e3a5a41de6d2a410f1d11b8c700400873f4f Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9verin=20Lemaignan?= Date: Sat, 28 Dec 2013 11:05:00 +0100 Subject: [PATCH] [emscripten] Do not link to system libraries This is not meaningful when compiling to javascript, and causes warning at linking stage. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2fb1cf7..2bb1cfa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -384,6 +384,8 @@ if(UNIX) set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} dl m log) elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|NetBSD|DragonFly") set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} m pthread) + elseif(EMSCRIPTEN) + # no need to link to system libs with emscripten else() set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} dl m pthread rt) endif() -- 2.7.4