I am trying to link SFML to a C++ project using CMake. This setup works fine on my Linux machine but when I try to build on my mac, it can't find the library: ld: library not found for -lsfml-network. My install for SFML is the exact same (in the way I did it) on both machines.
My CMakeLists.txt linking looks as follows:
target_link_libraries( Playground ${OpenCV_LIBS} sfml-network sfml-window sfml-graphics sfml-system )
cmake? Then you can at least rule out influence of that and reduce your question accordingly. This follows the rule of extracting an MCVE, which you should know from the guidelines for good questions.make VERBOSE=1after cmake to see exactly what flags cmake is giving the compiler. That can make it easier to diagnose the problem