[CMake] Multiple generators on the same library
Filipe Sousa
natros at gmail.com
Wed Apr 11 15:27:06 EDT 2007
Teodor Calin Hanchevici wrote:
> Hi all,
> I want to generate both nmake files and visual studio project files for
> the same libraries. When I try to do this I get this error:
>
> CMake Error: Error: generator : NMake Makefiles
> Does not match the generator used previously: Visual Studio 7 .NET 2003
> Either remove the CMakeCache.txt file or choose a different binary
> directory.
>
> I tried using -DCMAKE_BINARY_DIR and -D CMAKE_CURRENT_BINARY_DIR but did
> not work.
>
> Is it possible to do this? If yes what do I have to do.
Yes
Use different directories for each generator:
mkdir nmake_gen
cd nmake_gen
cmake -G"NMake Makefiles" /path/to/the/project
cd ..
mkdir vs7_gen
cd vs7_gen
cmake -G"????" /path/to/the/project
That should work
> Thank you,
> calin
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20070411/dab8d26b/signature.pgp
More information about the CMake
mailing list