From ebfac9dd953546c0837757f51a70f3358ba5a007 Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 30 Oct 2019 19:54:06 +0300 Subject: [PATCH] Issue '17915 [CEA 17912] CurvePlot breaks GUI build on Windows' remove dependency of the CurvePlot on PyInterp on Linux. --- tools/CurvePlot/src/cpp/CMakeLists.txt | 2 +- tools/CurvePlot/src/cpp/test/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() -- 2.39.2