Closed codecube47 closed 5 years ago
cmake .. -DPROJ=testpro -DTOOLCHAIN=/opt/kendryte-toolchain/bin && make NOT cmake ../..
Hi,
i am working with make, but i am newbie with cmake.
I have prepared toolchain, but building with cmake does not work because SOURCE_FILES=
is empty, which seems to be empty because cmake does not recognize add_source_files
or is not setting variable with this command.
I did check cmake documentation but i cant find add_source_files
in it:
https://cmake.org/cmake/help/v3.10/manual/cmake-commands.7.html#project-commands
Any help will be appreciated.
EDIT ok, i found it is macro, but still its not working i am using ubuntu on windows 10
Whats your project and build command looks like?
You can try to add some MESSAGE("XXX=$XXX")
to debug cmake.
@GongT I think i found problem, ive read somewhere that ubuntu 18 is not compatible and i should use ubuntu 16.
When I run cmake command I am getting path below error.
Below are the errors I am getting.
System
Ubuntu 16.04