From: Leonardo Florez Date: Wed, 18 Oct 2017 20:56:11 +0000 (-0500) Subject: ... X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=fb43b9d8fcdf126746024e7ee5739b42e8e21e91;p=cpPlugins.git ... --- diff --git a/CMakeLists.txt b/CMakeLists.txt index c601431..a9a846f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/appli/bash/CreateWin32Installer.cxx b/appli/bash/CreateWin32Installer.cxx index 4f6ac37..898bf64 100644 --- a/appli/bash/CreateWin32Installer.cxx +++ b/appli/bash/CreateWin32Installer.cxx @@ -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( "" ); } // ------------------------------------------------------------------------- diff --git a/lib/ivq/VTK/SeedWidget.cxx b/lib/ivq/VTK/SeedWidget.cxx index be43205..ac29628 100644 --- a/lib/ivq/VTK/SeedWidget.cxx +++ b/lib/ivq/VTK/SeedWidget.cxx @@ -6,6 +6,7 @@ #include +#include #include #include #include diff --git a/lib/tclap/Version.cxx.in b/lib/tclap/Version.cxx.in index ad3e03e..6ee6ec3 100644 --- a/lib/tclap/Version.cxx.in +++ b/lib/tclap/Version.cxx.in @@ -2,7 +2,7 @@ // @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co) // ========================================================================= -#include +#include #include // -------------------------------------------------------------------------