cmake and Code::Blocks

Brian Inglis Brian.Inglis@SystematicSw.ab.ca
Thu Jun 13 18:20:00 GMT 2019


On 2019-06-13 04:13, Pavel Fedin wrote:
> I am working on a CMake-based project and building it under Cygwin. I
> decided to use Code::Blocks IDE since CMake already hass appropriate project 
> generator (i'm using "CodeBlocks - Unix Makefiles"). However, i had to
> manually edit the resulting .cbp file and replace all paths with their native
> Windows equivalents; otherwise the IDE can't find any file and do anything.
> Is this a known TODO area for CMake or am i missing some magic switch while 
> loading the project into CB?
If you are trying to use a Windows based tool with Cygwin utilities, you are
likely to be the first, and on your own.

What evidence do you have of features that support Cygwin? Maybe CB doesn't
support Cygwin tools, or not very well, or maybe you have to change the
configuration, or provide the conversion, or maybe it's just not a good IDE for
those tools?

Having to edit file paths used by a tool is never a good sign. There are
probably a lot of other paths you may have to edit. Sometime the trick is to add
a couple of your own scripts to convert the paths in files to and from Cygwin
and Windows: hint - cygpath.

How would anyone here know if you are missing some magic switch using the tool
you chose?

Read and understand the docs to know the limitations and interface requirements
of the tools you have chosen.
Sometimes we make bad choices, have to scrap what we did, make hopefully better
choices, and restart from earlier.
Source control allows you to handle that more easily.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list