[CMake] Why would CMake add dependencies to libgomp?

Nils Gladitz nilsgladitz at gmail.com
Sat Jul 25 04:08:57 EDT 2015


On 25.07.2015 09:52, David Seaward wrote:
> Hi,
>
> I am generating Code::Blocks project files using CMake GUI. When I do
> this dependencies to GOMP/libgomp are added to the project makefiles.
> If I remove them manually, then make the project, they are added again
> (and the build fails because they are there and I don't have libgomp).
>

 From the looks of it libpointmatcher links to the libraries in 
${libnabo_LIBRARIES}:
https://github.com/ethz-asl/libpointmatcher/blob/master/CMakeLists.txt#L137

And libnabo_LIBRARIES contains "gomp" when using gcc:
https://github.com/ethz-asl/libnabo/blob/master/libnaboConfig.cmake.in#L11

Nils


More information about the CMake mailing list