diff options
author | Alex Neundorf <neundorf@kde.org> | 2011-12-13 21:11:47 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2011-12-13 21:11:47 (GMT) |
commit | 96fc5d5d0701c98a5029469c8a9dcc6aa6576278 (patch) | |
tree | a9de1452d820e43e9e548d2b77feb8f86eb21d98 /Tests/QtAutomoc | |
parent | 3c101429a4e563f4c711cae84317806284784eb6 (diff) | |
download | CMake-96fc5d5d0701c98a5029469c8a9dcc6aa6576278.zip CMake-96fc5d5d0701c98a5029469c8a9dcc6aa6576278.tar.gz CMake-96fc5d5d0701c98a5029469c8a9dcc6aa6576278.tar.bz2 |
automoc: default to strict mode, use CMAKE_AUTOMOC_RELAXED_MODE
automoc now defaults to strict mode, also with Qt4, i.e. it behaves as
the documentation says by default. I also inverted the switch
CMAKE_AUTOMOC_STRICT_MODE to CMAKE_AUTOMOC_RELAXED_MODE.
Docs and test adapted accordingly.
Alex
Diffstat (limited to 'Tests/QtAutomoc')
-rw-r--r-- | Tests/QtAutomoc/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/QtAutomoc/CMakeLists.txt b/Tests/QtAutomoc/CMakeLists.txt index ebfb4f5..d255a5a 100644 --- a/Tests/QtAutomoc/CMakeLists.txt +++ b/Tests/QtAutomoc/CMakeLists.txt @@ -10,6 +10,9 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}) add_definitions(-DFOO) +# enable relaxed mode so automoc can handle all the special cases: +set(CMAKE_AUTOMOC_RELAXED_MODE TRUE) + # create an executable and a library target, both requiring automoc: add_library(codeeditorLib STATIC codeeditor.cpp) |