]> Creatis software - cpPlugins.git/commitdiff
...
authorLeonardo Florez <leonardo@iMac-de-Andrea.local>
Wed, 18 Oct 2017 20:56:11 +0000 (15:56 -0500)
committerLeonardo Florez <leonardo@iMac-de-Andrea.local>
Wed, 18 Oct 2017 20:56:11 +0000 (15:56 -0500)
CMakeLists.txt
appli/bash/CreateWin32Installer.cxx
lib/ivq/VTK/SeedWidget.cxx
lib/tclap/Version.cxx.in

index c601431734d9dcd5f90eebe0d9c80727dab7e45b..a9a846f8741ac8734472d117d79837bb56eea42f 100644 (file)
@@ -20,6 +20,7 @@ foreach(_p ${_policies})
     cmake_policy(SET ${_p} NEW)
   endif(POLICY ${_p})
 endforeach(_p)
+cmake_policy(SET CMP0006 OLD)
 
 ## == Some general configuration
 include(cmake/cpPlgDefinitions.cmake)
index 4f6ac375cdf3dc57d719a8921aa7028ea1f8869e..898bf64655e2885b63b67a5ab9f391e141cff246 100644 (file)
@@ -32,15 +32,18 @@ inline bool Exists( const std::string& name )
 // -------------------------------------------------------------------------
 std::string Exec( const std::string& cmd )
 {
-  std::array< char, 128 > buffer;
-  std::string result;
-  std::shared_ptr< FILE > pipe( popen( cmd.c_str( ), "r" ), pclose );
-  if( !pipe )
+  /*
+    std::array< char, 128 > buffer;
+    std::string result;
+    std::shared_ptr< FILE > pipe( popen( cmd.c_str( ), "r" ), pclose );
+    if( !pipe )
     throw std::runtime_error( "popen( ) failed!" );
-  while( !feof( pipe.get( ) ) )
+    while( !feof( pipe.get( ) ) )
     if( fgets( buffer.data( ), 128, pipe.get( ) ) != NULL )
-      result += buffer.data( );
-  return( result );
+    result += buffer.data( );
+    return( result );
+  */
+  return( "" );
 }
 
 // -------------------------------------------------------------------------
index be432059e3a4aac51cb0ca4db271919406389eaf..ac296282f1425b31592606f93ddf78b65c6cdad0 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <ivq/VTK/SeedWidget.h>
 
+#include <vtkCommand.h>
 #include <vtkEvent.h>
 #include <vtkRenderWindowInteractor.h>
 #include <vtkWidgetCallbackMapper.h>
index ad3e03e64b0a53f3e01a4af1aeba0ec23d04a182..6ee6ec349c400bb912616cb73f994081f2172641 100644 (file)
@@ -2,7 +2,7 @@
 // @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
 // =========================================================================
 
-#include <tclap_export.h>
+#include <tclap/tclap_export.h>
 #include <string>
 
 // -------------------------------------------------------------------------