From 3e5ecd601508c87217d23d5c7563b754d3eb9ab6 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sat, 23 Feb 2013 16:10:36 -0800 Subject: [PATCH] ycm_core should be ycm_core.pyd on Windows --- cpp/ycm/CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cpp/ycm/CMakeLists.txt b/cpp/ycm/CMakeLists.txt index 2c280f64..7c606af8 100644 --- a/cpp/ycm/CMakeLists.txt +++ b/cpp/ycm/CMakeLists.txt @@ -281,10 +281,13 @@ endif() # for our module set_target_properties( ${PROJECT_NAME} PROPERTIES PREFIX "") -# 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 -if ( NOT WIN32 AND NOT CYGWIN ) +if ( WIN32 OR CYGWIN ) + # This is the extension for compiled Python modules on Windows + set_target_properties( ${PROJECT_NAME} PROPERTIES SUFFIX ".pyd") +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") endif()