Commit eb372d06 authored by Bart van der Velden's avatar Bart van der Velden

Don't output to cout anymore

Updated some comments
parent 97a5bc9f
......@@ -48,13 +48,12 @@ enable_testing()
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
message(FATAL_ERROR
"CMake generation for is not allowed within the source directory!"
"\n Remove the CMakeCache.txt file and try again from another directory, e.g.:"
"\n Remove the CMakeCache.txt file and try again from another (sub)directory, e.g.:"
"\n "
"\n rm CMakeCache.txt"
"\n cd .."
"\n mkdir build"
"\n cd build"
"\n cmake ../trunk"
"\n cmake .."
)
endif()
......
......@@ -16,7 +16,8 @@
# if a TAGLIB_ROOT environment variable is set.
#
# Currently it is tested on my own machines on Linux with gcc and on Windows with Microsoft Visual
# Studio 2010. The intention is to also make it work with clang on Linux and MinGW on Windows.
# Studio 2010 and 2012. The intention is to also make it work with clang on Linux/Mac and perhaps
# MinGW on Windows.
# Set the minimum version in case it has not been done earlier
if(NOT TAGLIB_MIN_VERSION)
......@@ -131,4 +132,3 @@ else(TAGLIB_FOUND)
message(FATAL_ERROR "Could not find Taglib")
endif(Taglib_FIND_REQUIRED)
endif(TAGLIB_FOUND)
......@@ -65,7 +65,7 @@ void AddErrorMessage(string& orgMessage, const string& newMessage)
bool HandleCommandLine(
int argc,
char **argv,
vector<fs::path>& directories ,
vector<fs::path>& directories,
fs::path& logFile,
string& message)
{
......@@ -153,12 +153,14 @@ bool HandleCommandLine(
}
else
{
cout << "Directories are: \n";
stringstream ss;
ss << "Directories are: \n";
directories = vm["directory"].as< vector<fs::path> >();
for (vector<fs::path>::iterator it = directories .begin(); it != directories .end(); ++it)
{
//cout << "\t" << *it << "\n";
ss << "\t" << *it << "\n";
}
AddErrorMessage(message, ss.str());
}
if (vm.count("logfile") == 1)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment