Procházet zdrojové kódy

fixed function signature from openGetFile

Marius Rescheleit před 4 roky
rodič
revize
420e7616f5
2 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 3 1
      daemon/CMakeLists.txt
  2. 1 1
      daemon/src/FileManager.cpp

+ 3 - 1
daemon/CMakeLists.txt

@@ -9,7 +9,9 @@ project(ccats)
 # dependencies used by server and tests
 find_package(Threads REQUIRED)
 find_package(Boost 1.67 REQUIRED COMPONENTS system filesystem)
-find_package(Jsoncpp REQUIRED)
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(JSONCPP jsoncpp)
+link_libraries(${JSONCPP_LIBRARIES})
 
 include(src/CMakeLists.txt)
 

+ 1 - 1
daemon/src/FileManager.cpp

@@ -35,7 +35,7 @@ bool FileManager::openPutFile(const std::string &filename) {
 }
 
 std::pair<bool, int>
-FileManager::openGetFile(const std::__cxx11::string &filename) {
+FileManager::openGetFile(const std::string &filename) {
   this->getBaseFileName = filename;
   std::string file = this->fileDirectory;
   file.append(filename);