User forums > Help

CMakeLists.txt and Code::Blocks

<< < (2/4) > >>

gd_on:
As you have installed a C::B version with mingw, you have somewhere a C compiler (gcc), a C++ compiler (g++) and a fortran compiler (gfortran). So, what is the problem ? You have all you need.

gtafan:

--- Quote from: gd_on on April 29, 2025, 02:07:11 pm ---As you have installed a C::B version with mingw, you have somewhere a C compiler (gcc), a C++ compiler (g++) and a fortran compiler (gfortran). So, what is the problem ? You have all you need.

--- End quote ---
But which files and from which directory I have to select? Do I really need to select that fortran thing?

Frank_CB:
@gd_on:

CMake deprecated (disabled) c::b generators since release 3.27. While those generators are still listed for backwards capacity, the company says not to use them.

@gtafan:

Why are you trying to use CMake? C::B can create its' own project files. Do you have C::B installed yet? I noticed that you just downloaded it.

Regards.

gd_on:

--- Quote ---CMake deprecated (disabled) c::b generators since release 3.27
--- End quote ---
May be.
For me, I have only one or two old Cmake projects, and there was no C::B project given with those projects. So my experience with that is quite poor. Nevertheless, I verified a few days ago and the cbp generation with cmake-gui still work quasi automatically, with just a few manuals adjustments to the generated cbp file. My cmake/cmake-gui has been updated recently (version 4.01). May be those projects are quite simple to translate, so it's why it still works.

gtafan:
After specifiing the compilers still got this error:


--- Quote ---CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
Configuring incomplete, errors occurred!
--- End quote ---

Without specifiing compilers there are some more errors.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version