summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/Step3/MathFunctions
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2022-11-16 09:28:45 (GMT)
committerJoerg Bornemann <joerg.bornemann@qt.io>2022-11-16 09:38:53 (GMT)
commit70c721befb52c2b4b718656a80df00f50dc689c7 (patch)
treec575e10645d87720058376e313447be6c1876f52 /Help/guide/tutorial/Step3/MathFunctions
parentb7ab39bf59c1b68140f1884676a2cfdaee2f7b41 (diff)
downloadCMake-70c721befb52c2b4b718656a80df00f50dc689c7.zip
CMake-70c721befb52c2b4b718656a80df00f50dc689c7.tar.gz
CMake-70c721befb52c2b4b718656a80df00f50dc689c7.tar.bz2
AutoMoc: Don't initialize already defined CMAKE_AUTOMOC_ variables
Setting the variables CMAKE_AUTOGEN_ORIGIN_DEPENDS, CMAKE_AUTOMOC_COMPILER_PREDEFINES, and CMAKE_AUTOMOC_MACRO_NAMES on the cmake command line did not work as expected. CMakeGenericSystem.cmake initialized these variables even if they were defined by the user. This led to the confusing situation where the cache variant of a variable had one value (defined on the command line) and the non-cache variant of a variable had a different value (defined in CMakeGenericSystem.cmake). Fix this by checking whether the variables are defined before setting their default values. Fixes: #24069
Diffstat (limited to 'Help/guide/tutorial/Step3/MathFunctions')
0 files changed, 0 insertions, 0 deletions