From 3e1d48bc2be9e748cfc36feb498eb2688097e492 Mon Sep 17 00:00:00 2001 From: SALOME Date: Fri, 27 Apr 2018 17:52:08 +0300 Subject: [PATCH] Fix a problem with linking tests on Fedora 26 OS --- src/Plugins/ParaMEDCorba/CMakeLists.txt | 4 +++- test/standalone/gui/CMakeLists.txt | 5 +++-- test/standalone/simple/CMakeLists.txt | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Plugins/ParaMEDCorba/CMakeLists.txt b/src/Plugins/ParaMEDCorba/CMakeLists.txt index 11ca52fa..7728d30f 100644 --- a/src/Plugins/ParaMEDCorba/CMakeLists.txt +++ b/src/Plugins/ParaMEDCorba/CMakeLists.txt @@ -89,9 +89,11 @@ PROJECT( ParaMEDCorba ) ${ParaMEDCorba_SOURCE_DIR}/testParaMEDCorba.cxx ) # SET_TARGET_PROPERTIES(testCorbaPlugin PROPERTIES COMPILE_FLAGS "${OMNIORB_DEFINITIONS}") - + + # RNV: ${vtkgl2ps_LIBRARIES} was added for Fedora 26 OS TARGET_LINK_LIBRARIES( testParaMEDCorba ParaMEDCorbaPlugin + ${vtkgl2ps_LIBRARIES} ) INSTALL(FILES ParaMEDCorbaServerManager.xml DESTINATION share) diff --git a/test/standalone/gui/CMakeLists.txt b/test/standalone/gui/CMakeLists.txt index a0be3238..56190768 100644 --- a/test/standalone/gui/CMakeLists.txt +++ b/test/standalone/gui/CMakeLists.txt @@ -71,7 +71,8 @@ ADD_EXECUTABLE(paraLight ${pl_HEADERS_MOC} ${pl_FORMS_HEADERS} ${rcs_sources}) - -TARGET_LINK_LIBRARIES(paraLight ${QT_LIBRARIES} pqApplicationComponents vtkRenderingFreeType vtkInteractionStyle) + +# RNV: ${vtkgl2ps_LIBRARIES} was added for Fedora 26 OS +TARGET_LINK_LIBRARIES(paraLight ${QT_LIBRARIES} pqApplicationComponents vtkRenderingFreeType vtkInteractionStyle ${vtkgl2ps_LIBRARIES}) #INSTALL(TARGET paraLight bin) diff --git a/test/standalone/simple/CMakeLists.txt b/test/standalone/simple/CMakeLists.txt index 61c0fb8b..d74d98ad 100644 --- a/test/standalone/simple/CMakeLists.txt +++ b/test/standalone/simple/CMakeLists.txt @@ -32,5 +32,6 @@ INCLUDE_DIRECTORIES( ) ADD_EXECUTABLE(paraCmdLine ${pl_SOURCES}) -TARGET_LINK_LIBRARIES(paraCmdLine ${PYTHON_LIBRARIES} ${QT_LIBRARIES} pqApplicationComponents vtkRenderingFreeType vtkInteractionStyle) +# RNV: ${vtkgl2ps_LIBRARIES} was added for Fedora 26 OS +TARGET_LINK_LIBRARIES(paraCmdLine ${PYTHON_LIBRARIES} ${QT_LIBRARIES} pqApplicationComponents vtkRenderingFreeType vtkInteractionStyle ${vtkgl2ps_LIBRARIES}) -- 2.39.2