diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-01-31 12:38:22 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-01-31 12:38:22 +0100 |
commit | 0097ffe65c542c0f02d81a299db737e3606d99c0 (patch) | |
tree | a366cd4d85deca4d9da417bfc0648e18efc22df2 | |
parent | 7a9214ac97a043d1c4258392fd9d439b7ff213cd (diff) | |
parent | c99aa3447bffcd8c222566a7c22b9627c5a52c59 (diff) |
Merge remote-tracking branch 'origin/5.12' into dev
Change-Id: Iffe580006fe81a3eb87dd12383f0dffb8b884c82
-rw-r--r-- | CMakeLists.txt | 8 | ||||
-rw-r--r-- | tests/CMakeLists.txt | 1 |
2 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2aa79d6..4d0d9f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,8 +67,12 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake" "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" IMMEDIATE @ONLY) -add_custom_target(uninstall "${CMAKE_COMMAND}" - -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") +# When opening super project, prevent redefinition of uninstall target. +if (NOT TARGET uninstall) + add_custom_target(uninstall "${CMAKE_COMMAND}" + -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") +endif() + # Does not work with ninja on Win32. if (NOT (WIN32 AND CMAKE_GENERATOR STREQUAL "Ninja")) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c2da412..25a9cb7 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,4 +1,3 @@ -find_package(Shiboken2 2.0.0 REQUIRED) add_subdirectory(rcc) add_test(QWizard ${SHIBOKEN_PYTHON_INTERPRETER} ${CMAKE_SOURCE_DIR}/pyside2-uic "${CMAKE_CURRENT_SOURCE_DIR}/qwizard_test.ui") set_tests_properties(QWizard PROPERTIES |