mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-27 18:21:30 +00:00
Fix Cygwin support
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user