[CMake] heads up on convenience lib ? and a problem on source
files with similar names...
Pascal Fleury
fleury at users.sourceforge.net
Wed May 9 17:36:09 EDT 2007
On Wednesday 09 May 2007 00:48:25 Asmodehn Shade wrote:
> So here are my questions :
> - What is the status of supporting convenience libraries ? Anyone knows if
> / when this will be likely to work ?
I don't think the CMake team is keen on supporting such convenience libs, from
past messages on this list. If you are aware enough of the intricacies of
using them (especially with DLLs) then you may produce static libs and link
them to the DLL or executable, using suitable options. Otherwise, the best is
to create a list of source in a CMake variable, and add this to the relevant
targets. This will recompile the sources once per target, but it will have
all the needed flags be it a DLL, EXE or LIB.
> - Does someone has a solution to the
> problem of source file with similar name ( other than renaming my files,
> and the naming conventions I ve had everywhere so far ;) ) ?? Maybe cmake
> could just build source.o and source_1.o for example ? or some other name
> matching pattern based on the path and extension ?
I found that such problems do not occur with CMake as it puts the resulting
files into different directories anyway. So your problem is unrelated to the
actual file name, except maybe if they reside in the same dir. Run the
produced Makefiles with 'make VERBOSE=1' to see exactly what command is
issued, or look at the full compiler output in VC.
--pascal
More information about the CMake
mailing list