From 90299eb73e3a4336db1d15a7cb7de0dba6eb73a4 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Fri, 10 Aug 2018 14:22:06 +0100 Subject: CREATE_PROJECT: Fix creating CMake projects outside of the main source directory --- devtools/create_project/cmake.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'devtools') diff --git a/devtools/create_project/cmake.cpp b/devtools/create_project/cmake.cpp index d1a2be86cc..20f868299a 100644 --- a/devtools/create_project/cmake.cpp +++ b/devtools/create_project/cmake.cpp @@ -81,7 +81,7 @@ void CMakeProvider::createWorkspace(const BuildSetup &setup) { workspace << "# Generate options for the engines\n"; writeEngineOptions(workspace); - workspace << "include_directories(${" << setup.projectDescription << "_SOURCE_DIR} ${" << setup.projectDescription << "_SOURCE_DIR}/engines " + workspace << "include_directories(${" << setup.projectDescription << "_SOURCE_DIR}/" << setup.filePrefix << " ${" << setup.projectDescription << "_SOURCE_DIR}/" << setup.filePrefix << "/engines " "$ENV{"<