Building static libraries on Mac using CMake and GCC?
问题 Greetings all, I have a static library which I later link with my application. My development environment is CMake, GCC (Linux, Mac), MinGW (Windows). I can compile the static library without any problem on Linux and Windows. (I can even build shared libraries in my application on Mac). EDIT: I compiled the library as a SHARED library and it worked fine!! I have configured CMakeFile as follows to build the static library: add_library(centi STATIC ${base_srcs} ${crv_srcs} ${node_srcs} ${trnk