No subject


Wed Oct 7 22:37:18 EDT 2009


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



More information about the CMake mailing list