cmake_policy(SET ${_p} NEW)
endif(POLICY ${_p})
endforeach(_p)
+cmake_policy(SET CMP0006 OLD)
## == Some general configuration
include(cmake/cpPlgDefinitions.cmake)
// -------------------------------------------------------------------------
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( "" );
}
// -------------------------------------------------------------------------
// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
// =========================================================================
-#include <tclap_export.h>
+#include <tclap/tclap_export.h>
#include <string>
// -------------------------------------------------------------------------