Hi The problem:
>From a shared CMakeLists.txt i get the following error when defining a library target. Policy CMP0002 is not set: Logival target names must be globally unique. The situation: Let's assume i have the following cmake files in the following folders with the svn:externals properties. C:\project\CMakeLists.txt add_subdirectory(ProjectA) add_subdirectory(ProjectB) C:\project\ProjectA (svn:externals LibraryA <svn_path_to_libA>) add_subdirectory(LibraryA) c:\project\ProjectB (svn:externals LibraryA <svn_path_to_libA>) add_subdirectory(LibraryA) c:\project\LibraryA add_library(LibraryA) Thoughts: I don't know if this causes any problem, I tried reading some documentations but I couldn't figure it out. If there is a problem, is there a way to avoid it? Can/Should I use something like #ifndef LibraryA_CMakeLists_txt_ #define LibraryA_CMakeLists_txt_ <Normal CMakeLists.txt> #endif -mika _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake