Cycles_server also needs to link to libdl on linux
authorMartijn Berger <martijn.berger@gmail.com>
Mon, 3 Feb 2014 19:19:15 +0000 (20:19 +0100)
committerMartijn Berger <martijn.berger@gmail.com>
Mon, 3 Feb 2014 19:19:15 +0000 (20:19 +0100)
intern/cycles/app/CMakeLists.txt

index 64d710ef9d0a8d3737cfd236067148579d1ec6b8..52806b0804b171b804d998f7f0fd1d799a8bd277 100644 (file)
@@ -68,7 +68,7 @@ if(WITH_CYCLES_NETWORK)
                cycles_server.cpp
        )
        add_executable(cycles_server ${SRC})
-       target_link_libraries(cycles_server ${LIBRARIES})
+       target_link_libraries(cycles_server ${LIBRARIES} ${CMAKE_DL_LIBS})
 
        if(UNIX AND NOT APPLE)
                set_target_properties(cycles_server PROPERTIES INSTALL_RPATH $ORIGIN/lib)