+ else
+ {
+ boost::regex expression("^\\h*#\\h*UNCOMMENT EACH LIBRARY NEEDED \\(WILL BE FOUND AND USED AUTOMATICALLY\\)[^\\n]*\\n");
+ if(boost::regex_search(start, end, what, expression, flags))
+ {
+ found = true;
+ resCMfile += what.prefix().str();
+ resCMfile += what.str();
+ if(toInclude)
+ {
+ resCMfile += "SET(${BBTK_PACKAGE_NAME}"+ library_command +" ON)\n";
+ }
+ resCMfile += what.suffix().str();
+ return CDMUtilities::writeFile(this->CMakeLists->GetPath().c_str(), resCMfile);
+ }
+ }