]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CMake: minor: enhancing FILE(GLOB ...) expression matching the sub directory
authorbruneton <bruneton>
Wed, 29 Jan 2014 14:58:36 +0000 (14:58 +0000)
committerbruneton <bruneton>
Wed, 29 Jan 2014 14:58:36 +0000 (14:58 +0000)
lib/cmake/paraview-x.y

salome_adm/cmake_files/FindSalomeVTK.cmake

index 3733186ed9932f0a60323ee4f756ba54fb274cbf..5da0b9638d1e7228c605b3ed1c89a0a6bb06f92b 100644 (file)
@@ -50,7 +50,7 @@ IF(EXISTS "${PARAVIEW_ROOT_DIR}" AND (NOT VTK_ROOT_DIR))
   MESSAGE(STATUS "Looking for VTK in the ParaView installation (PARAVIEW_ROOT_DIR exists and VTK_ROOT_DIR is not defined) ...")
   
   # Extract sub-directory "paraview-x.xx":
-  FILE(GLOB VTK_DIR "${PARAVIEW_ROOT_DIR}/lib/cmake/paraview-*")
+  FILE(GLOB VTK_DIR "${PARAVIEW_ROOT_DIR}/lib/cmake/paraview-[1-9].[0-9]")
   MESSAGE(STATUS "Setting VTK_DIR to: ${VTK_DIR}") 
 ENDIF()