From: rnv Date: Wed, 30 Oct 2019 16:54:06 +0000 (+0300) Subject: Issue '17915 [CEA 17912] CurvePlot breaks GUI build on Windows' remove dependency... X-Git-Tag: V9_4_0rc1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ebfac9dd953546c0837757f51a70f3358ba5a007;p=modules%2Fgui.git Issue '17915 [CEA 17912] CurvePlot breaks GUI build on Windows' remove dependency of the CurvePlot on PyInterp on Linux. --- diff --git a/tools/CurvePlot/src/cpp/CMakeLists.txt b/tools/CurvePlot/src/cpp/CMakeLists.txt index 3f701ebc0..dd0b5e051 100644 --- a/tools/CurvePlot/src/cpp/CMakeLists.txt +++ b/tools/CurvePlot/src/cpp/CMakeLists.txt @@ -34,7 +34,7 @@ ADD_DEFINITIONS(${PYTHON_DEFINITIONS}) # libraries to link to SET(_link_LIBRARIES ${PYTHON_LIBRARIES} ${GUI_PyInterp}) -IF(TARGET PyInterp) +IF(TARGET PyInterp AND WIN32) SET(_link_LIBRARIES ${_link_LIBRARIES} PyInterp) ENDIF() diff --git a/tools/CurvePlot/src/cpp/test/CMakeLists.txt b/tools/CurvePlot/src/cpp/test/CMakeLists.txt index 50e6ef11a..a38a77b0c 100644 --- a/tools/CurvePlot/src/cpp/test/CMakeLists.txt +++ b/tools/CurvePlot/src/cpp/test/CMakeLists.txt @@ -31,7 +31,7 @@ ADD_DEFINITIONS(${PYTHON_DEFINITIONS} ${QT_DEFINITIONS}) # 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()