date icon indicating copy to clipboard operation
date copied to clipboard

cmake fails with: make: *** No rule to make target 'testit'. Stop.

Open grantrostig opened this issue 5 years ago • 1 comments

Can't find documentation that indicates what the minimum versions of cmake is.

grostig@debian-x86-64:~/src/date$ cd build/
grostig@debian-x86-64:~/src/date/build$ ls
grostig@debian-x86-64:~/src/date/build$ cmake ../
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- 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
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
# date: USE_SYSTEM_TZ_DB OFF
# date: USE_TZ_DB_IN_DOT OFF
# date: BUILD_SHARED_LIBS OFF
# date: ENABLE_DATE_TESTING OFF
# date: DISABLE_STRING_VIEW OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /home/grostig/src/date/build
grostig@debian-x86-64:~/src/date/build$ cmake --build . --target testit
make: *** No rule to make target 'testit'.  Stop.
grostig@debian-x86-64:~/src/date/build$ uname -a
Linux debian-x86-64 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux
grostig@debian-x86-64:~/src/date/build$ cmake --version
cmake version 3.13.4

CMake suite maintained and supported by Kitware (kitware.com/cmake). 
grostig@debian-x86-64:~/src/date/build$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
grostig@debian-x86-64:~/src/date/build$ date
Wed 01 Jan 2020 01:18:41 PM CST
grostig@debian-x86-64:~/src/date/build$ 

grantrostig avatar Jan 01 '20 19:01 grantrostig

you need to add -DENABLE_DATE_TESTING=ON when configuring...test targets are disabled by default.

mellery451 avatar Jan 01 '20 23:01 mellery451