|
|
|
|
|
|
|
|
|
Re: Unresolved inclusion <iostream> when using cmake. [message #1831446 is a reply to message #1831426] |
Thu, 20 August 2020 02:46 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
No. A Managed Build creates its own makefile.
But you could use it instead of CMake.
Import the project as an existing Makefile project.
File --> Import --> C/C++ --> Existing Code as Makefile Project
The project directory has to exist somewhere but it can be an empty directory (or even a workspace project directory).
Then add the CMake files, source, etc. as necessary and run CMake to create a Makefile.
You'll have to refresh the project after running CMake or externally modifying the project.
You could have CMake do the build also.
The key is that a Makefile project won't touch the makefile.
Alternately, you could create a Managed Build but turn off the makefile generation.
Project --> Properties --> C/C++ Build --> Generate Makefiles automatically
This effectively converts a Mangaged Build project into a Makefile Project.
Don't try creating a "new" Makefile project.
It doesn't work the way the documentation is written.
It will likely confuse you.
[Updated on: Thu, 20 August 2020 03:02] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04247 seconds