From 1fafb8289c4caa10e0d8467cae6efd20eabd5d45 Mon Sep 17 00:00:00 2001 From: an-tao Date: Sat, 15 Sep 2018 22:58:48 +0800 Subject: [PATCH] Fix drogon_ctl bug --- drogon_ctl/create_project.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drogon_ctl/create_project.cc b/drogon_ctl/create_project.cc index b79de2f5..75502199 100644 --- a/drogon_ctl/create_project.cc +++ b/drogon_ctl/create_project.cc @@ -60,6 +60,7 @@ static void newCmakeFile(std::ofstream &cmakeFile,const std::string &projectName "set(CMAKE_CXX_FLAGS_DEBUG \"${CMAKE_CXX_FLAGS_DEBUG} -Wall -std=${CMAKE_CXX_STD_FLAGS}\")\n" "set(CMAKE_CXX_FLAGS_RELEASE \"${CMAKE_CXX_FLAGS_RELEASE} -Wall -std=${CMAKE_CXX_STD_FLAGS}\")\n" "\n" + "set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake_modules/)\n" "#jsoncpp\n" "find_package (Jsoncpp REQUIRED)\n" "include_directories(${JSONCPP_INCLUDE_DIRS})\n" @@ -224,4 +225,4 @@ void create_project::createProject(const std::string &projectName) newJsonFindFile(jsonFile); std::ofstream gitFile(".gitignore",std::ofstream::out); newGitIgFile(gitFile); -} \ No newline at end of file +}