-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
|
| I’ve run into a problem trying to pass command line parameters to
Visual C++, that contain the $ character. I’m building a C++/CLI module,
and need to reference some .NET assemblies, with the /FU compiler
option. Since Visual Studio stores the installation location of .NET in
one of its own macros, $(FrameworkDir), I want to pass the following
compiler options verbatim to Visual Studio:
|
|
|
| /FU $(FrameworkDir)/v2.0.50727/System.dll
|
|
|
| But if I go
|
|
|
| ADD_DEFINES( /FU $(FrameworkDir)/v2.0.50727/System.dll ),
|
|
|
| , what I end up with in Visual Studio is
|
|
|
| /FU “$”(FrameworkDir)/v2.0.50727/System.dll
|
|
|
| , which obviously is not going to work.
|
|
|
| So what do I need to do to pass a $ character through to Visual
Studio, without the quotes? I’m using cmake 2.6.0 .
|
Just $$. I had the same problem and googled it here:
http://marc.info/?l=cmake&m=120043575105964&w=2
- -Wojciech
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIZTUg0iFl+nAyImcRAu5qAKCA4lnDcvBxVqTHgU//9WXlSsMMCwCeJq7A
OhCUjRKOfGQDb03wDatYm2w=
=dbkh
-----END PGP SIGNATURE-----
----------------------------------------------------------------------
Z Map24 Twoja droga jest prosta! Sprawdz!
kliknij >>> http://link.interia.pl/f1e3b
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake