diff --git a/build/CMakeLists.txt b/build/CMakeLists.txt
index b36d2aa..52d0e11 100755
--- a/build/CMakeLists.txt
+++ b/build/CMakeLists.txt
@@ -5,16 +5,20 @@ project(broom)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
-set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
-set(BUILD_SHARED_LIBS OFF)
-set(CMAKE_EXE_LINKER_FLAGS "-static")
-
find_package(Threads REQUIRED)
-set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
-set(THREADS_PREFER_PTHREAD_FLAG TRUE)
+IF(MSVC)
+ # to be made, probably...
+else()
+ set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
+ set(BUILD_SHARED_LIBS OFF)
+ set(CMAKE_EXE_LINKER_FLAGS "-static")
+
+ set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
+ set(THREADS_PREFER_PTHREAD_FLAG TRUE)
-set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -Wall -Werror -O2")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -O2")
+endif()
set(EXECUTABLE_OUTPUT_PATH ../bin)
diff --git a/src/broom.cpp b/src/broom.cpp
index 717203e..23a7eb3 100755
--- a/src/broom.cpp
+++ b/src/broom.cpp
@@ -24,6 +24,7 @@ along with broom. If not, see .
#include
#include
#include
+#include
#include "entry.hpp"
#include "broom.hpp"
@@ -161,14 +162,14 @@ void Broom::create_scan_results_list(const std::map> Broom scan results file from " << std::ctime(&now) << std::endl << std::endl << std::endl;
- for (const auto record : grouped_duplicates) {
+ for (const auto& record : grouped_duplicates) {
if (record.first == "") {
outfile << "[EMPTY FILES]" << std::endl;
} else {
outfile << "[DUPLICATE GROUP]" << std::endl;
}
- for (const auto duplicate_entry : record.second) {
+ for (const auto& duplicate_entry : record.second) {
outfile << duplicate_entry.path << std::endl;
}
diff --git a/src/broom.hpp b/src/broom.hpp
index 313ed04..89ef2d2 100755
--- a/src/broom.hpp
+++ b/src/broom.hpp
@@ -23,6 +23,9 @@ along with broom. If not, see .
#include
#include
#include