Commit fc19c198 by Boris Schäling

Fix Cygwin support

parent 3f3ea262
......@@ -5,7 +5,7 @@ cmake_install.cmake
.DS_Store
/example/example.so
/example/example.pyd
/example/example.dll
/example/example*.dll
*.sln
*.sdf
*.opensdf
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment