Split CP up into components that can be called individually

Empty header files may need build directory created for lib_deps file.
Error message in make_makefile_src was not showing file name.

refs #86
This commit is contained in:
Alex Lin
2015-07-21 14:41:30 -05:00
parent 274a6afd62
commit 63179b2fa3
2 changed files with 5 additions and 1 deletions

View File

@ -521,6 +521,10 @@ void PrintAttributes::printHeaderLibraryDependencies() {
found = (*sit).find_last_of(".") ;
std::string lib_dep_file = std::string("build") + (*sit).substr(0,found) + ".lib_deps" ;
char * dir_name ;
dir_name = dirname((char *)lib_dep_file.c_str()) ;
_mkdir(dir_name) ;
std::vector< std::string > lib_deps = cs.getLibraryDependencies((*sit)) ;
std::vector< std::string >::iterator vit ;
if ( lib_deps.size() > 0 ) {