'MT_StaticRelease' doesn't match value 'MD_DynamicRelease'

Also note that for more recent cmake versions, the best resolution i found if you are using cmake is:

  1. Use the CMP0091 policy setting to be able to use the MSVC option in point 2 like this :slight_smile:
if(POLICY CMP0091)
  cmake_policy(SET CMP0091 NEW) 
endif()
  1. Then only add the new property definition:
    set_property(TARGET MyVtkAppOrLibName PROPERTY
        MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")

for each project it links to,

Note that once the CMP if section is inserted in step 1, we don’t need to set manually the /MP flag , the old cmake way (as it can cause other problems).