Author Topic: [ANSWERED] Why would CB add dependencies to libgomp? (Ans: It's CMake)  (Read 2795 times)

Offline d3vid

  • Single posting newcomer
  • *
  • Posts: 2
Hi,

I am generating CB project files using CMake. When I do this dependencies to GOMP/libgomp are added to the project makefiles. If I remove them manually, then open the project in CB and try to build it, they are added again (and the build fails because they are there).

Is there any reason why CB would add these dependencies to GOMP?

Given that they are being added, is there any way to suppress/inhibit them? Perhaps by adding a flag to my compiler via CB?

(A full explanation of my build attempt is given here http://stackoverflow.com/questions/31614268 , but I was wondering if there was a CB-specific cause or workaround.)

Thanks.
« Last Edit: July 25, 2015, 09:09:34 am by d3vid »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Why would CB add dependencies to libgomp?
« Reply #1 on: July 24, 2015, 06:48:24 pm »
CB doesn't add any dependencies and in case of makefile projects doesn't execute the compiler at all.
The make program is executing the compiler with the command line options specified in the makefile.

Inspect the generated makefile and also the cmake build system.

My guess is that the problem will happen even if you run make from a terminal.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Why would CB add dependencies to libgomp?
« Reply #2 on: July 24, 2015, 06:49:50 pm »
As far as I know cmake creates makefiles anduses them with C::B.
Code::blocks does not touch any makefiles or add/remive anything to/fromthem.
So this seems to be a a problem with  cmake (or more likely your cmake-configuration).

Offline d3vid

  • Single posting newcomer
  • *
  • Posts: 2
Re: Why would CB add dependencies to libgomp?
« Reply #3 on: July 25, 2015, 09:08:26 am »
Thanks for pointing me in the right direction!