Some initial minor MSVC support

This commit is contained in:
Strahinja Val Markovic 2013-02-05 18:57:49 -08:00
parent 2159ed8e39
commit e8a4caa561
2 changed files with 7 additions and 1 deletions

View File

@ -86,6 +86,12 @@ endif()
# TODO: remove this when it's fixed upstream (probably boost 1.53).
add_definitions( -DBOOST_THREAD_DONT_USE_CHRONO )
if( MSVC )
# BOOST_PYTHON_SOURCE makes boost use the correct __declspec and
# BOOST_ALL_NO_LIB turns off MSVC library autolinking
add_definitions( -DBOOST_PYTHON_SOURCE -DBOOST_ALL_NO_LIB )
endif()
#############################################################################
include_directories(

View File

@ -35,7 +35,7 @@ function! s:HasYcmCore()
let path_prefix = s:script_folder_path . '/../python/'
if filereadable(path_prefix . 'ycm_core.so')
return 1
elseif filereadable(path_prefix . 'ycm_core.dll')
elseif filereadable(path_prefix . 'ycm_core.pyd')
return 1
endif
return 0