$ cat /etc/issue
Ubuntu 14.10 \n \l
$ gcc --version
gcc (Ubuntu 4.9.1-16ubuntu6) 4.9.1
$ mkdir build && cd build
$ cmake ..
$ cmake -DCMAKE_BUILD_TYPE=Debug ..
-- The C compiler identification is GNU 4.9.1
-- The CXX compiler identification is GNU 4.9.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- SYSTEM: Linux
CMAKE_CXX_COMPILER: /usr/bin/c++
-- Configuring done
-- Generating done
-- Build files have been written to: /home/gluttton/Projects/Celero/build
$ make
Scanning dependencies of target celero
--------8<--------
[ 17%] Building CXX object CMakeFiles/celero.dir/src/Console.cpp.o
/home/gluttton/Projects/Celero/src/Console.cpp:28:21: fatal error: curses.h: No such file or directory
#include <curses.h>
^
compilation terminated.
CMakeFiles/celero.dir/build.make:146: recipe for target 'CMakeFiles/celero.dir/src/Console.cpp.o' failed
--------8<--------
Error can be fixed by installing libncurses5-dev.
I propose add:
find_package (Curses)
or:
set (CURSES_NEED_NCURSES TRUE)
find_package (Curses)
in CMakeLists.txt and check required files at configuration time (during cmake calling).
Error can be fixed by installing
libncurses5-dev
.I propose add:
or:
in
CMakeLists.txt
and check required files at configuration time (duringcmake
calling).