anchor.diff:  
     echo building marisa.
     pushd thirdparty\src\marisa-trie
  -  cmake .. -B%build_dir% %thirdparty_common_cmake_flags%
  +  cmake .. -B%build_dir% %thirdparty_cmake_flags%
     if errorlevel 1 goto error
     cmake --build %build_dir% --config %build_config% --target INSTALL
     if errorlevel 1 goto error
  
positive.code:   popd
  )
  
  set thirdparty_common_cmake_flags=-G%CMAKE_GENERATOR%^
   -A%ARCH%^
   -T%PLATFORM_TOOLSET%^
   -DCMAKE_CONFIGURATION_TYPES:STRING="%build_config%"^
   -DCMAKE_CXX_FLAGS_RELEASE:STRING="/MT /O2 /Ob2 /DNDEBUG"^
   -DCMAKE_C_FLAGS_RELEASE:STRING="/MT /O2 /Ob2 /DNDEBUG"^
  
negative.code:  --with-system^
   --with-thread
  
  rem the number actually means platform toolset, not %VisualStudioVersion%
  rem eg. BJAM_TOOLSET=msvc-14.2 corresponds to PLATFORM_TOOLSET=v142
  if defined BJAM_TOOLSET (
    set bjam_options=toolset=%BJAM_TOOLSET%
  )
  set bjam_options=%bjam_options%^
   variant=%boost_build_variant%^
   link=static^
   threading=multi^
   runtime-link=static^
   cxxflags="/Zc:threadSafeInit- "
  
  set bjam_options_x86=%bjam_options%^
   define=BOOST_USE_WINAPI_VERSION=0x0501
  
  set bjam_options_x64=%bjam_options%^
   define=BOOST_USE_WINAPI_VERSION=0x0502^
   address-model=64^
   --stagedir=stage_x64
  