summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2017-09-09 20:32:16 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2017-09-21 07:58:24 (GMT)
commitc8f92db72cedb4aa970be3c29b0fa1e3beff96f9 (patch)
tree2407c62fac7d451a9be2a85ce38217efee2ecf2e
parent3c77515e1377aefcb3f2f26bc6f30440c6d25d96 (diff)
downloadCMake-c8f92db72cedb4aa970be3c29b0fa1e3beff96f9.zip
CMake-c8f92db72cedb4aa970be3c29b0fa1e3beff96f9.tar.gz
CMake-c8f92db72cedb4aa970be3c29b0fa1e3beff96f9.tar.bz2
Autogen: Tests: Disable an AUTOMOC_DEPENDS_FILTER test for Ninja
Ninja does not recognize changes in included files that are generated by AUTOMOC on the first run. This is an open issue: https://gitlab.kitware.com/cmake/cmake/issues/16776
-rw-r--r--Tests/QtAutogenRerun/mocPlugin.cmake14
1 files changed, 11 insertions, 3 deletions
diff --git a/Tests/QtAutogenRerun/mocPlugin.cmake b/Tests/QtAutogenRerun/mocPlugin.cmake
index 27ca691..7ad5ccb 100644
--- a/Tests/QtAutogenRerun/mocPlugin.cmake
+++ b/Tests/QtAutogenRerun/mocPlugin.cmake
@@ -57,7 +57,11 @@ if (NOT plDAfter GREATER plDBefore)
message(SEND_ERROR "file (${plDFile}) should have changed!")
endif()
if (NOT plEAfter GREATER plEBefore)
- message(SEND_ERROR "file (${plEFile}) should have changed!")
+ # There's a bug in Ninja on Windows
+ # https://gitlab.kitware.com/cmake/cmake/issues/16776
+ if(NOT ("${CMAKE_GENERATOR}" MATCHES "Ninja"))
+ message(SEND_ERROR "file (${plEFile}) should have changed!")
+ endif()
endif()
# - Ensure that the timestamp will change.
@@ -83,6 +87,10 @@ endif()
if (NOT plDAfter GREATER plDBefore)
message(SEND_ERROR "file (${plDFile}) should have changed!")
endif()
- if (NOT plEAfter GREATER plEBefore)
- message(SEND_ERROR "file (${plEFile}) should have changed!")
+if (NOT plEAfter GREATER plEBefore)
+ # There's a bug in Ninja on Windows
+ # https://gitlab.kitware.com/cmake/cmake/issues/16776
+ if(NOT ("${CMAKE_GENERATOR}" MATCHES "Ninja"))
+ message(SEND_ERROR "file (${plEFile}) should have changed!")
+ endif()
endif()