Skip to content

Commit

Permalink
[emscripten] Do not link to system libraries
Browse files Browse the repository at this point in the history
This is not meaningful when compiling to javascript, and causes warning
at linking stage.
  • Loading branch information
Séverin Lemaignan committed Dec 30, 2013
1 parent 0913dd7 commit 9e13e3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9e13e3a

Please sign in to comment.