[CMake] [2.4.6] EXCLUDE_FROM_ALL does not work?

Clark J. Wang dearvoid at gmail.com
Thu Jun 14 01:16:47 EDT 2007


$ ls
CMakeLists.txt dummy.c
$ cat CMakeLists.txt
PROJECT(foo)
ADD_LIBRARY(dummy SHARED EXCLUDE_FROM_ALL dummy.c)
$ cmake .
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
CMake Error: Cannot find source file "/root/cmake/test/EXCLUDE_FROM_ALL" for
target "dummy"

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
-- Configuring done
$

Anything I did wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070614/0ae29dfb/attachment.htm


More information about the CMake mailing list