[CMake] linking hared libraries

Raymond Wan rwan.work at gmail.com
Mon Oct 19 09:48:38 EDT 2015


Hi Owen,


On Mon, Oct 19, 2015 at 8:43 PM, Owen Alanzo Hogarth
<gurenchan at gmail.com> wrote:
> Also you said the PROJECT() should only be defined once, but shouldn't each
> cmakelists.txt contain a project() or else cmake complains at me.


According to the last paragraph of:

https://cmake.org/cmake/help/v3.0/command/project.html

you only need a PROJECT () in the top-level CMakeLists.txt...

Ray


More information about the CMake mailing list