[CMake] Not planning to Build Executable

Timenkov Yuri ytimenkov at gmail.com
Sun Sep 28 03:32:57 EDT 2008


On Fri, Sep 26, 2008 at 2:40 PM, Jan Roehrich <jan.roehrich at iao.iward.org>wrote:

> Hello list,
>
> I have the following problem:
>
> I'm using cmake in a C++ project where I create some executables which
> sources rest in its own directories. These
> directories are included using ADD_SUBDIRECTORY.
>
> One subdirectory is called "peer". When I execute cmake, I get - among
> other things - the output "Not planning to Build Executable : peer
> because disabled by user, use ccmake to enable".
>
> Ok. I start ccmake and ENABLE_PEER is OFF. I change this to ON and type
> "c" to generate. After generation ENABLE_PEER is OFF again.
>
> Are there any hints how I can track down the problem. I'm not very
> familiar with cmake yet.

May be this is a problem in your CMakeLists.txt, someone overwrites your
value with set(ENABLE_PEER  .. CACHE FORCE).
Look for ENABLE_PEER usage in your cmake scripts, there are may be a clues.

>
>
> Thanks in advance
>
> Regards Jan
>
> --
> Dipl. Inform. (FH) Jan Röhrich
> @ Fraunhofer IAO
> jan.roehrich at iao.iward.org
>
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080928/63072cfc/attachment.htm>


More information about the CMake mailing list