I have the exact same problem.

I have several projects and I want to statically link one of them with
the Visual C++ libraries.
i.e I want to replace the Visual C++ /MD flag by /MT only in this
specific projet, not the others.

> Can you do something like this:
>
> set (CMAKE_CXX_FLAGS_ORIG CMAKE_CXX_FLAGS)
> string (REPLACE "foo" "bar" ${CMAKE_CXX_FLAGS} CMAKE_CXX_FLAGS)
> add_library (baz ${src_files})
> set (CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_ORIG)
>
> ?

This does not work.

-- 
Tanguy Krotoff <[email protected]>
+33 6 68 42 70 24
_______________________________________________
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

Reply via email to