[cfe-dev] cmake TableGen
Manuel Klimek
klimek at google.com
Thu May 10 05:08:04 PDT 2012
On Thu, May 10, 2012 at 10:09 AM, Ran Regev <regev.ran at gmail.com> wrote:
>
> When trying to cmake TableGen, I got these error and warning:
>
> CMake Error at CMakeLists.txt:5 (add_tablegen):
> Unknown CMake command "add_tablegen".
>
>
> CMake Warning (dev) in CMakeLists.txt:
> No cmake_minimum_required command is present. A line of code such as
>
> cmake_minimum_required(VERSION 2.8)
>
> should be added at the top of the file. The version specified may be
> lower
> if you wish to support older CMake versions for this project. For more
> information run "cmake --help-policy CMP0000".
> This warning is for project developers. Use -Wno-dev to suppress it.
>
> -- Configuring incomplete, errors occurred!
>
>
> Any idea?
Are you calling cmake from the TableGen subdir? If yes, that's not
going to fly - you need to call cmake with the toplevel directory, and
it will recurse automatically.
Cheers,
/Manuel
More information about the cfe-dev
mailing list