From: ana Date: Mon, 21 Dec 2015 17:34:48 +0000 (+0300) Subject: Windows compatibility X-Git-Tag: V8_0_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b9e4361fa4be2e80ea5608d088af9e0d53050d89;p=modules%2Fparavis.git Windows compatibility --- diff --git a/src/Plugins/MEDReader/IO/CMakeLists.txt b/src/Plugins/MEDReader/IO/CMakeLists.txt index ec86a828..53dfb553 100644 --- a/src/Plugins/MEDReader/IO/CMakeLists.txt +++ b/src/Plugins/MEDReader/IO/CMakeLists.txt @@ -48,7 +48,7 @@ ELSE(HDF5_IS_PARALLEL) ENDIF(HDF5_IS_PARALLEL) VTK_MODULE_LIBRARY(vtkMEDReader ${MEDReader_SRCS}) -TARGET_LINK_LIBRARIES(vtkMEDReader ${PARAVIEW_LIBRARIES} MEDLoaderForPV ${MEDFILE_C_LIBRARIES}) +TARGET_LINK_LIBRARIES(vtkMEDReader vtkPVVTKExtensionsRendering vtkFiltersGeneral vtkFiltersCore vtkRenderingOpenGL ${PARAVIEW_LIBRARIES} MEDLoaderForPV ${MEDFILE_C_LIBRARIES}) INSTALL( TARGETS vtkMEDReader MEDLoaderForPV diff --git a/src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderTimesFlagsWidget.cxx b/src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderTimesFlagsWidget.cxx index 25113c76..4590a020 100644 --- a/src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderTimesFlagsWidget.cxx +++ b/src/Plugins/MEDReader/ParaViewPlugin/pqMEDReaderTimesFlagsWidget.cxx @@ -188,10 +188,11 @@ void pqMEDReaderTimesFlagsWidget::UpdateTimeSteps() const char* leafString = prop->GetElement(i - 1); const char* tmp = strchr(leafString, '/'); size_t num = tmp - leafString; - char dest[num]; + char* dest = new char[num]; strncpy(dest, leafString, num); dest[num] = '\0'; tsId = strtol(dest + 2, NULL, 10); + delete dest; break; } } diff --git a/src/Plugins/MEDReader/Test/CMakeLists.txt b/src/Plugins/MEDReader/Test/CMakeLists.txt index 9b1e06d9..77e434f5 100644 --- a/src/Plugins/MEDReader/Test/CMakeLists.txt +++ b/src/Plugins/MEDReader/Test/CMakeLists.txt @@ -99,7 +99,7 @@ SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env) FOREACH(tfile ${TEST_NUMBERS}) ADD_TEST(testMEDReader${tfile} ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/testMEDReader${tfile}.py -B ${CMAKE_CURRENT_SOURCE_DIR}/Baselines ) - SET_TESTS_PROPERTIES(testMEDReader${tfile} PROPERTIES ENVIRONMENT ${tests_env}) + SET_TESTS_PROPERTIES(testMEDReader${tfile} PROPERTIES ENVIRONMENT "${tests_env}") ENDFOREACH() ENDIF(KW_TESTING_PLATFORM) diff --git a/test/standalone/gui/CMakeLists.txt b/test/standalone/gui/CMakeLists.txt index eea2c6e5..29579851 100644 --- a/test/standalone/gui/CMakeLists.txt +++ b/test/standalone/gui/CMakeLists.txt @@ -71,6 +71,6 @@ ADD_EXECUTABLE(paraLight ${pl_FORMS_HEADERS} ${rcs_sources}) -TARGET_LINK_LIBRARIES(paraLight ${QT_LIBRARIES} pqApplicationComponents )#vtkRenderingFreeTypeOpenGL) +TARGET_LINK_LIBRARIES(paraLight ${QT_LIBRARIES} pqApplicationComponents vtkRenderingFreeType)#vtkRenderingFreeTypeOpenGL) #INSTALL(TARGET paraLight bin) diff --git a/test/standalone/simple/CMakeLists.txt b/test/standalone/simple/CMakeLists.txt index 3ae3cecb..9e4dbd15 100644 --- a/test/standalone/simple/CMakeLists.txt +++ b/test/standalone/simple/CMakeLists.txt @@ -32,5 +32,5 @@ INCLUDE_DIRECTORIES( ) ADD_EXECUTABLE(paraCmdLine ${pl_SOURCES}) -TARGET_LINK_LIBRARIES(paraCmdLine ${PYTHON_LIBRARIES} ${QT_LIBRARIES} pqApplicationComponents) +TARGET_LINK_LIBRARIES(paraCmdLine ${PYTHON_LIBRARIES} ${QT_LIBRARIES} pqApplicationComponents vtkRenderingFreeType)