summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2020-08-12 14:05:45 +0200
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2020-08-12 14:51:18 +0200
commit1d4457da13f818d08bf26215c2d5a8bc7fd5757b (patch)
tree4d32f91b4e1b1edefe84f8f3226f8e8d408070ef /cmake
parentbc0f5f5d1afd2cdd8737030fc2f07d2be81d9363 (diff)
cmake, README: clearify the usage of '-' in feature names
It's not immediately obvious that you need to use all underscores for the feature name, so add a line that explaines it. Change-Id: I508eaf909c808fb0a93442f6e71428c18559b965 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/README.md b/cmake/README.md
index 65be11666d..21bc320d75 100644
--- a/cmake/README.md
+++ b/cmake/README.md
@@ -110,7 +110,8 @@ the source directory next to them using the helper script
``path_to_qtbase_source/util/cmake/configurejson2cmake.py``. They are checked into the repository.
If the feature in configure.json has the name "dlopen", you can specify whether to enable or disable that
feature in CMake with a -D flag on the CMake command line. So for example -DFEATURE_dlopen=ON or
--DFEATURE_sql_mysql=OFF. At the moment, if you change a FEATURE flag's value, you have to remove the
+-DFEATURE_sql_mysql=OFF. Remember to convert all '-' to '_' in the feature name.
+At the moment, if you change a FEATURE flag's value, you have to remove the
CMakeCache.txt file and reconfigure with CMake. And even then you might stumble on some issues when
reusing an existing build, because of an automoc bug in upstream CMake.