Author Topic: Help: Can't select debug or release for compilation  (Read 4777 times)

Offline eweb2009

  • Multiple posting newcomer
  • *
  • Posts: 14
Help: Can't select debug or release for compilation
« on: January 10, 2010, 05:16:19 pm »
Linux Ubuntu 9.10, cmake 2.6.4

The project file was created by using cmake-qt-gui with option of CodeBlocks -- GNU GCC compiler. After opening this project file (for compiling VTK libraries) in Codeblocks, no compilation option can be shown. When building the project, only generate static library files (looks like release compilation option as default) regardless what I changed in project property and build option. When I create a new project file within Codeblocks, compilation options can be shown and selected. But I don't know how to create such new project file within Codeblocks together with Cmake file of VTK.

I don't know if this is a simple problem that is due to I missed something when installing and configuring Codeblocks, or it is complicated as it is related to both Codeblocks and Cmake. 

Your help and advice are greatly appreciated.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Help: Can't select debug or release for compilation
« Reply #1 on: January 12, 2010, 07:06:45 am »
I'm not sure about that, but cmake creates custom makefile projects as far as I know.
If that's the case (you see this if you have less build options and the custom makefile checkbox on the first properties tab of the project is checked), you can only compile targets included in the makefile, other settings can not be sent to the compiler, because all the compiling and linking stuff is done by the makefile.

You have to change the makefile manually to make this behave different, or maybe there are switches or configuration options for cmake, that make it create more targets.