Fix Cygwin support

This commit is contained in:
Boris Schäling 2016-05-29 16:56:15 +02:00
parent 3f3ea26215
commit fc19c19804
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@ -5,7 +5,7 @@ cmake_install.cmake
.DS_Store
/example/example.so
/example/example.pyd
/example/example.dll
/example/example*.dll
*.sln
*.sdf
*.opensdf

View File

@ -61,7 +61,7 @@ function(pybind11_add_module target_name)
set_target_properties(${target_name} PROPERTIES PREFIX "${PYTHON_MODULE_PREFIX}")
set_target_properties(${target_name} PROPERTIES SUFFIX "${PYTHON_MODULE_EXTENSION}")
if(WIN32)
if(WIN32 OR CYGWIN)
# Link against the Python shared library on Windows
target_link_libraries(${target_name} PRIVATE ${PYTHON_LIBRARIES})
elseif(APPLE)