Unknown CMake command "library_hook".

Bug #758659 reported by Anders Branderud
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cuneiform for Linux
Invalid
Undecided
Unassigned

Bug Description

Hello!

I run CMake in order to build this on Windows:
https://launchpad.net/cuneiform-linux

I get the following printout:
"Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 10
Check for working CXX compiler using: Visual Studio 10 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Could NOT find ImageMagick (missing: ImageMagick_FOUND)
ImageMagick++ not found. Only uncompressed BMP images supported.
Adding __snp.c to individual libraries.
CMake Error at Kern/ccom/CMakeLists.txt:9 (library_hook):
Unknown CMake command "library_hook".
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!"

Can anyone tell me how I should solve this error?

Thanks!

-- Kind Regards, Anders Branderud

Tags: cmake
Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

Where did you get your sources? You checkout may be broken since the very second line of CMakeLists.txt is this:

cmake_minimum_required(VERSION 2.6.2)

which your log indicates is missing.

Revision history for this message
Anders Branderud (bra-anders) wrote :

I got the sources from here (1.0):
https://launchpad.net/cuneiform-linux

Many of the CMakeLists.txt-files included are lacking this line:
"cmake_minimum_required(VERSION 2.6.2)".

I subsequently tested to build the program using CMake on Ubuntu and it worked fine.

Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

That line is only required on the top level CMakeLists.txt. Are you you are selecting the absolute top directory as the source dir in CMake Windows GUI (which I assume you are using)? Not the src subdirectory or anything else, but the root dir?

Revision history for this message
Anders Branderud (bra-anders) wrote :

Thanks for the help and sorry for the erronous bug report! I had chosen the wrong directory.

/Anders

Changed in cuneiform-linux:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.