diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2021-06-08 08:43:41 +0200 |
---|---|---|
committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2021-06-10 18:28:52 +0200 |
commit | b8804bf868c9f9b18a8b1caa9f512659113ddb98 (patch) | |
tree | 41b1d7c12160a1049be939707add838d56fc8f7d /CMakeLists.txt | |
parent | 40a7fe06b96652b09209672528afa720b8548525 (diff) |
Fix "examples" and "tests" target name collisions
Pick-to: 6.2
Fixes: QTBUG-94333
Change-Id: I1e9b4c3f042dc370441e062288f5f9689d31c091
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3b4f06d7e..63d227fc4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -154,7 +154,7 @@ externalproject_add(libs ) if(QT_BUILD_EXAMPLES AND BUILD_SHARED_LIBS) - externalproject_add(examples + externalproject_add(qtwebengine_examples SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/examples BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/examples PREFIX examples @@ -163,7 +163,7 @@ if(QT_BUILD_EXAMPLES AND BUILD_SHARED_LIBS) CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} "${featureList}" ) - externalproject_add_stepdependencies(examples install libs) + externalproject_add_stepdependencies(qtwebengine_examples install libs) endif() if(FORCE_TEST_RUN OR QT_BUILD_TESTS) @@ -172,7 +172,7 @@ if(FORCE_TEST_RUN OR QT_BUILD_TESTS) if(FORCE_TEST_RUN) set(testRunCommand TEST_COMMAND ctest) endif() - externalproject_add(tests + externalproject_add(qtwebengine_tests SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/tests BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/tests PREFIX tests @@ -184,9 +184,9 @@ if(FORCE_TEST_RUN OR QT_BUILD_TESTS) INSTALL_COMMAND "" ${testRunCommand} ) - externalproject_add_stepdependencies(tests install libs) + externalproject_add_stepdependencies(qtwebengine_tests install libs) if(QT_BUILD_EXAMPLES AND BUILD_SHARED_LIBS) - externalproject_add_stepdependencies(tests install examples) + externalproject_add_stepdependencies(qtwebengine_tests install qtwebengine_examples) endif() endif() |