|
Re: cmake generation problem [message #1858738 is a reply to message #1829500] |
Wed, 19 April 2023 03:15 |
Takeshi Miura Messages: 1 Registered: April 2023 |
Junior Member |
|
|
Same Issue on the Ubuntu 22.04.2 LTS
CDT Build Console[SampleProject]
-LAH .
CMake Warning:
Ignoring extra path from command line:
"."
-- Cache values
CMake Error: The source directory "/home/c3p/cpp-2023-03/eclipse" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
Command terminated with rc=1
Resolution:
- Probably internal command:
machine:~/cpp-2023-03/eclipse$ cmake -LAH .
- So, move eclipse's current directory to the project holder.
machine:~/cdt-workspace$ mkdir SampleProject2
machine:~/cdt-workspace$ cd SampleProject2
machine:~/cdt-workspace/SampleProject2$ ~/cpp-2023-03/eclipse/eclipse (bring up IDE)
- File | New | c/c++ project | emtpy cmake project
- project -> properties | cmake | generate -> Apply (above error nothing) -> Ok
- F5 -> Close Project -> Open Project
- project | c/c++ index | rebuild
CDT Project construction Success.
It's a specification ?
Thanks.
[Updated on: Sun, 23 April 2023 04:31] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02745 seconds