diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-06-13 09:25:45 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-06-13 14:51:33 (GMT) |
commit | 7f68ad6612e4eded99fda9de7133e77a9eced04e (patch) | |
tree | 3b25585b9bb17db0f3f290093963337a79fe8ec1 /Tests/Qt4Targets | |
parent | 38e3fc4bddf6ef47828a7beb732e3d78d297bd23 (diff) | |
download | CMake-7f68ad6612e4eded99fda9de7133e77a9eced04e.zip CMake-7f68ad6612e4eded99fda9de7133e77a9eced04e.tar.gz CMake-7f68ad6612e4eded99fda9de7133e77a9eced04e.tar.bz2 |
Autogen: Tests: Disable some tests on non ASCII build paths
Diffstat (limited to 'Tests/Qt4Targets')
-rw-r--r-- | Tests/Qt4Targets/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/Qt4Targets/CMakeLists.txt b/Tests/Qt4Targets/CMakeLists.txt index ae0a02b..2ca11e4 100644 --- a/Tests/Qt4Targets/CMakeLists.txt +++ b/Tests/Qt4Targets/CMakeLists.txt @@ -20,6 +20,16 @@ if (WIN32) endif() endif() +# Qt4 moc does not support utf8 paths in _parameter files generated by +# qt4_wrap_cpp and qt4_generate_moc +# https://bugreports.qt.io/browse/QTBUG-35480 +# Do a simple check if there is are non ASCII character in the build path +string(REGEX MATCH "[^ -~]+" NON_ASCII_BDIR ${CMAKE_CURRENT_BINARY_DIR}) +if(NON_ASCII_BDIR) + message(WARNING "Build path contains non ASCII characters. Skipping Qt4 test.") + return() +endif() + qt4_generate_moc(main_gen_test.cpp "${CMAKE_CURRENT_BINARY_DIR}/main_gen_test.moc" TARGET Qt4GenerateMacroTest |