Some initial minor MSVC support
This commit is contained in:
parent
2159ed8e39
commit
e8a4caa561
@ -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(
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user