[CMake] CommandLine VS GUI

Félix C. Morency felix.morency at gmail.com
Mon Jul 7 14:06:42 EDT 2008


Hi,

I'm using the cache to avoid multiple target of the same library:

if( not libname_already_defined )
   set( libname_already_defined TRUE CACHE INTERNAL TRUE )
   ...
endif( not libname_already_defined )

It works well under linux using the command line tool. The command line also
produces a good solution to be used under VS. However, the GUI tool doesn't
seems to behave like the command line tool. The problem is that the GUI tool
performs a configure twice and the second time, the variables in the cache
are already set. The results is that the outputted solution doesn't contain
the libraries.

Is there any workaround for the problem ?

Cheers,
Félix C. Morency
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080707/dfb04af9/attachment.htm>


More information about the CMake mailing list