mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +00:00
Fix Cygwin support
This commit is contained in:
parent
3f3ea26215
commit
fc19c19804
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,7 +5,7 @@ cmake_install.cmake
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
/example/example.so
|
/example/example.so
|
||||||
/example/example.pyd
|
/example/example.pyd
|
||||||
/example/example.dll
|
/example/example*.dll
|
||||||
*.sln
|
*.sln
|
||||||
*.sdf
|
*.sdf
|
||||||
*.opensdf
|
*.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 PREFIX "${PYTHON_MODULE_PREFIX}")
|
||||||
set_target_properties(${target_name} PROPERTIES SUFFIX "${PYTHON_MODULE_EXTENSION}")
|
set_target_properties(${target_name} PROPERTIES SUFFIX "${PYTHON_MODULE_EXTENSION}")
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32 OR CYGWIN)
|
||||||
# Link against the Python shared library on Windows
|
# Link against the Python shared library on Windows
|
||||||
target_link_libraries(${target_name} PRIVATE ${PYTHON_LIBRARIES})
|
target_link_libraries(${target_name} PRIVATE ${PYTHON_LIBRARIES})
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
|
Loading…
Reference in New Issue
Block a user