[CMake] Why would CMake add dependencies to libgomp?

David Seaward dseaward925 at gmail.com
Tue Aug 4 03:56:56 EDT 2015


That was very helpful, thanks Nils. I'll be modifying the CMake file
to include gomp only when (gcc & !mingw)

On Sat, Jul 25, 2015 at 10:08 AM, Nils Gladitz <nilsgladitz at gmail.com> wrote:
> 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