views:

74

answers:

1

Currently it's linking it dynamically,causing much trouble for me(missing msvcr80.dll).

How should I instruct cmake to link it statically?

A: 
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
Christian