Thomas Veith wrote:
Hi Bill,Thanks a lot! I did add_executable(foo foo.cpp) add_dependencies(foo socket) and wasnt aware that I also need target_link_libraries(foo socket) Now it works!
Actually, you don't need that add_dependencies call either. That is only needed to force something to build before something else that it does not link to.
-Bill _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake