Skip to content

Commit

Permalink
(python.cmake) Testing if the OS is pure UNIX and NOT MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-stasse authored and gergondet committed Jun 9, 2020
1 parent 5d602f8 commit e7ae669
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,9 @@ MACRO(DYNAMIC_GRAPH_PYTHON_MODULE SUBMODULENAME LIBRARYNAME TARGETNAME)
)
CMAKE_POLICY(POP)

TARGET_LINK_LIBRARIES(${PYTHON_MODULE} ${PUBLIC_KEYWORD} "-Wl,--no-as-needed")
IF (UNIX AND NOT APPLE)
TARGET_LINK_LIBRARIES(${PYTHON_MODULE} ${PUBLIC_KEYWORD} "-Wl,--no-as-needed")
ENDIF(UNIX AND NOT APPLE)
TARGET_LINK_LIBRARIES(${PYTHON_MODULE} ${PUBLIC_KEYWORD} ${LIBRARYNAME} ${PYTHON_LIBRARY})

TARGET_INCLUDE_DIRECTORIES(${PYTHON_MODULE} SYSTEM PRIVATE ${PYTHON_INCLUDE_DIRS})
Expand Down

0 comments on commit e7ae669

Please sign in to comment.