Browse Source

Remove boost::thread from cmakelists

Ivan Savenko 7 months ago
parent
commit
64ac14fa06
2 changed files with 2 additions and 2 deletions
  1. 1 1
      CMakeLists.txt
  2. 1 1
      lib/CConsoleHandler.cpp

+ 1 - 1
CMakeLists.txt

@@ -462,7 +462,7 @@ endif()
 #        Finding packages                  #
 ############################################
 
-set(BOOST_COMPONENTS date_time filesystem locale program_options system thread)
+set(BOOST_COMPONENTS date_time filesystem locale program_options system)
 if(ENABLE_INNOEXTRACT)
 	list(APPEND BOOST_COMPONENTS iostreams)
 endif()

+ 1 - 1
lib/CConsoleHandler.cpp

@@ -317,7 +317,7 @@ void CConsoleHandler::end()
 
 void CConsoleHandler::start()
 {
-	thread = std::thread(std::bind(&CConsoleHandler::run,console));
+	thread = std::thread(std::bind(&CConsoleHandler::run, this));
 }
 
 VCMI_LIB_NAMESPACE_END