Hi!
thanks for the reply, but it has two drawbacks:
1. it needs to change CMakeLists.txt which I don't want to
(as written in my proposal) since it is not my project but a
large open source project. It gets developed mainly on unix
and macos but since it uses cmake I can compile it for
windows (therefore in principle cmake is great!)
2. in your snippet
set (CMAKE_CXX_FLAGS ".....")
the interesting thing is what is inside "....". I don't want to find it
out therefore my current aproach is to patch the output project
using TinyXML.
-Jochen
Michael Jackson schrieb:
For your project you can always add your own "flags" such as:
CMakeLists.txt---- Begin
if (VS_USE_STATIC_RUNTIME)
set (CMAKE_CXX_FLAGS ".....")
endif()
CMakeLists.txt------ END
Then on the command line do the following:
cmake -G "Visual Studio 9 2008" -DVS_USE_STATIC_RUNTIME=ON ../
or from a "Clean" build directory in CMake_GUi.exe add a cmake variable
using the usual dialog boxes, then "Configure" your project.
___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jack...@bluequartz.net
BlueQuartz Software Dayton, Ohio
On Jan 15, 2010, at 4:01 PM, Jochen Wilhelmy wrote:
Please see it from the point of view of someone who is not a cmake
expert and also not a visual studio expert.
such a user will not know what CMAKE_CXX_FLAGS are
and also not know that /MD or /MT controls dynamic or
static runtime of cl.exe on the command line
(and what about the settings in the project xml-file?)
As I at least know a bit of Visual Studio the simplest
solution for me is to patch the output project using
TinyXML.
But as cmake is such a powerful tool why fail on
simple things?
Jochen
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake