Hello,

I found a project recently which looks odd in the Qt Creator project
tree. Looking into it I found that this project has several projects
defined and two of those define the same target (same SOURCE file,
same name, etc.). It seems like both projects somehow include the same
CMakeLists.txt file defining that target (have not yet checked for the
specifics).

So I was wondering: Is this even allowed? The CMake manual says target
names must be unique within a project. I had always read that as
"unique within one build system", but now I am confused:-) Maybe this
is actually about PROJECTs defined in CMakeLists.txt files?

If different PROJECTs may have targets with the same name: How do I
call cmake to build one of those targets via the command line
interface but not the other?

Best Regards,
Tobias
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to