ycm_core should be ycm_core.pyd on Windows

This commit is contained in:
Strahinja Val Markovic 2013-02-23 16:10:36 -08:00
parent 6786d4e71b
commit 3e5ecd6015

View File

@ -281,10 +281,13 @@ endif()
# for our module # for our module
set_target_properties( ${PROJECT_NAME} PROPERTIES PREFIX "") set_target_properties( ${PROJECT_NAME} PROPERTIES PREFIX "")
# Even on macs, we want a .so extension instead of a .dylib which is what cmake if ( WIN32 OR CYGWIN )
# would give us by default. Python won't recognize a .dylib as a module, but it # This is the extension for compiled Python modules on Windows
# will recognize a .so set_target_properties( ${PROJECT_NAME} PROPERTIES SUFFIX ".pyd")
if ( NOT WIN32 AND NOT CYGWIN ) else()
# Even on macs, we want a .so extension instead of a .dylib which is what
# cmake would give us by default. Python won't recognize a .dylib as a module,
# but it will recognize a .so
set_target_properties( ${PROJECT_NAME} PROPERTIES SUFFIX ".so") set_target_properties( ${PROJECT_NAME} PROPERTIES SUFFIX ".so")
endif() endif()