diff options
author | Cameron Cawley | 2018-08-10 14:22:06 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-11 08:22:03 +0200 |
commit | 90299eb73e3a4336db1d15a7cb7de0dba6eb73a4 (patch) | |
tree | 7ec8295df367145699e71ed5869c142ce4924152 | |
parent | 3fc6680f4f924623e8bf98981bae991fe5b7ebdd (diff) | |
download | scummvm-rg350-90299eb73e3a4336db1d15a7cb7de0dba6eb73a4.tar.gz scummvm-rg350-90299eb73e3a4336db1d15a7cb7de0dba6eb73a4.tar.bz2 scummvm-rg350-90299eb73e3a4336db1d15a7cb7de0dba6eb73a4.zip |
CREATE_PROJECT: Fix creating CMake projects outside of the main source directory
-rw-r--r-- | devtools/create_project/cmake.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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{"<<LIBS_DEFINE<<"}/include .)\n\n"; workspace << "# Libraries and features\n\n"; |