Difference between modules and shared libraries?
The difference is that you can link to a SHARED library with the linker, but you cannot link to a MODULE with the linker. On some platforms. So… to be fully cross-platform and work everywhere CMake works, you should never do this: # This is a big NO-NO: add_library(mylib MODULE ${srcs}) target_link_libraries(myexe mylib) To be … Read more