-# Copyright (C) 2012-2019 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2012-2024 CEA, EDF
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# libraries to link to
SET(_link_LIBRARIES ${PYTHON_LIBRARIES} ${GUI_PyInterp} ${QT_LIBRARIES} CurvePlot)
-IF(TARGET PyInterp)
+IF(TARGET PyInterp AND WIN32)
SET(_link_LIBRARIES ${_link_LIBRARIES} PyInterp)
ENDIF()